55
66import static org .assertj .core .api .Assertions .assertThat ;
77import static org .awaitility .Awaitility .await ;
8- import static org .junit .Assert .assertEquals ;
98
109import com .google .common .base .Stopwatch ;
1110import com .microsoft .applicationinsights .smoketest .fakeingestion .MockedAppInsightsIngestionServer ;
@@ -611,7 +610,7 @@ protected Telemetry getTelemetry(int rddCount, Predicate<RemoteDependencyData> c
611610 telemetry .rdEnvelope = rdList .get (0 );
612611 telemetry .rd = (RequestData ) ((Data <?>) telemetry .rdEnvelope .getData ()).getBaseData ();
613612
614- assertEquals ( 0 , mockedIngestion .getCountForType ("EventData" ));
613+ assertThat ( mockedIngestion .getCountForType ("EventData" )). isEqualTo ( 0 );
615614
616615 if (rddCount == 0 ) {
617616 return telemetry ;
@@ -677,7 +676,7 @@ public static void assertParentChild(
677676 boolean topLevelParent ) {
678677 String operationId = parentEnvelope .getTags ().get ("ai.operation.id" );
679678 assertThat (operationId ).isNotNull ();
680- assertEquals ( operationId , childEnvelope .getTags ().get ("ai.operation.id" ));
679+ assertThat ( childEnvelope .getTags ().get ("ai.operation.id" )). isEqualTo ( operationId );
681680
682681 String operationParentId = parentEnvelope .getTags ().get ("ai.operation.parentId" );
683682 if (topLevelParent ) {
@@ -686,10 +685,10 @@ public static void assertParentChild(
686685 assertThat (operationParentId ).isNotNull ();
687686 }
688687
689- assertEquals ( parentId , childEnvelope .getTags ().get ("ai.operation.parentId" ));
688+ assertThat ( childEnvelope .getTags ().get ("ai.operation.parentId" )). isEqualTo ( parentId );
690689
691- assertEquals ( parentOperationName , parentEnvelope .getTags ().get ("ai.operation.name" ));
692- assertEquals ( childOperationName , childEnvelope .getTags ().get ("ai.operation.name" ));
690+ assertThat ( parentEnvelope .getTags ().get ("ai.operation.name" )). isEqualTo ( parentOperationName );
691+ assertThat ( childEnvelope .getTags ().get ("ai.operation.name" )). isEqualTo ( childOperationName );
693692 }
694693
695694 public static Predicate <Envelope > getMetricPredicate (String name ) {
0 commit comments