File tree Expand file tree Collapse file tree
src/test/java/io/weaviate/client6/v1/api/collections/batch Expand file tree Collapse file tree Original file line number Diff line number Diff line change 2020import org .assertj .core .api .Assertions ;
2121import org .junit .After ;
2222import org .junit .Before ;
23+ import org .junit .Rule ;
2324import org .junit .Test ;
25+ import org .junit .rules .TestName ;
2426import org .slf4j .Logger ;
2527import org .slf4j .LoggerFactory ;
2628
3436public class BatchContextTest {
3537 private static final Logger log = LoggerFactory .getLogger (BatchContextTest .class );
3638
39+ @ Rule
40+ public TestName currentTest = new TestName ();
41+
3742 private static final CollectionDescriptor <Map <String , Object >> DESCRIPTOR = CollectionDescriptor
3843 .ofMap ("BatchContextTest" );
3944 private static final CollectionHandleDefaults DEFAULTS = new CollectionHandleDefaults (
@@ -101,7 +106,7 @@ private StreamObserver<Message> createStream(StreamObserver<Event> recv) {
101106 */
102107 @ Before
103108 public void startContext () throws InterruptedException {
104- log .debug ("===================startContext==================" );
109+ log .atDebug (). addKeyValue ( "test" , currentTest . getMethodName ()). log ("===================startContext==================" );
105110
106111 assert !Thread .currentThread ().isInterrupted () : "main thread interrupted" ;
107112 assert REQUEST_QUEUE .isEmpty () : "stream contains incoming message " + REQUEST_QUEUE .peek ();
You can’t perform that action at this time.
0 commit comments