Add some changes

This commit is contained in:
Meysam Tamkin
2020-08-30 19:59:24 +04:30
parent d746040544
commit 769e35c0fc

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);
}
}