File tree Expand file tree Collapse file tree
src/test/java/software/amazon/awssdk/crt/test Expand file tree Collapse file tree Original file line number Diff line number Diff line change 2323import org .junit .BeforeClass ;
2424import org .junit .After ;
2525import org .junit .Assume ;
26+ import org .junit .Rule ;
27+ import org .junit .rules .TestName ;
28+
2629
2730import java .util .Optional ;
2831
2932public class CrtTestFixture {
3033
3134 private CrtTestContext context ;
3235
36+ @ Rule
37+ public TestName testName = new TestName ();
38+
3339 public final CrtTestContext getContext () {
3440 return context ;
3541 }
@@ -230,6 +236,7 @@ public static void setupOnce() {
230236 /* The setup function will be run before every test */
231237 @ Before
232238 public void setup () {
239+ System .out .println ("[TEST START] " + testName .getMethodName ());
233240 Log .log (Log .LogLevel .Debug , LogSubject .JavaCrtGeneral , "CrtTestFixture setup begin" );
234241
235242 // TODO this CrtTestContext should be removed as we are using System Properties
@@ -258,6 +265,7 @@ public void tearDown() {
258265 }
259266 }
260267 Log .log (Log .LogLevel .Debug , LogSubject .JavaCrtGeneral , "CrtTestFixture tearDown end" );
268+ System .out .println ("[TEST END] " + testName .getMethodName ());
261269 }
262270
263271 protected TlsContext createTlsContextOptions (byte [] trustStore ) {
You can’t perform that action at this time.
0 commit comments