Add some changes

This commit is contained in:
Meysam Tamkin 2020-08-30 19:59:24 +04:30
parent 0ca42d7d8c
commit d8d2ecc4b4
1 changed files with 25 additions and 0 deletions

View File

@ -0,0 +1,25 @@
package com.baeldung.junit5.nonstatic;
import org.junit.jupiter.api.*;
@TestInstance(TestInstance.Lifecycle.PER_CLASS)
public class BeforeAfterAllNonStaticTest {
String input;
Long result;
@BeforeAll
public void setup() {
input = "77";
}
@AfterAll
public void teardown() {
Assertions.assertEquals(77l, result);
}
@Test
public void testConvertStringToLong() {
result = Long.valueOf(input);
}
}