Skip to content

Latest commit

 

History

History
11 lines (8 loc) · 416 Bytes

File metadata and controls

11 lines (8 loc) · 416 Bytes

Java Unit Testing using Junit

  • @BeforeEach annotated method should execute for each invocation of the test method.
  • This is used for initializing the classes of the constructor

@Test

  • Test method, which would return void & no inputs

assertThat

  • assertThat(functionDeclaration or variable).isEqualTo(ExpectedOutput)