@@ -66,41 +66,41 @@ public void testIfRetrouteToSubstreamNotAllowedThrows() {
6666
6767 IllegalArgumentException ex = expectThrows (
6868 IllegalArgumentException .class ,
69- () -> utils .throwIfRetrouteToSubstreamNotAllowed (projectMetadataMock , indexHistory , destination )
69+ () -> utils .throwIfRerouteToSubstreamNotAllowed (projectMetadataMock , indexHistory , destination )
7070 );
7171
7272 assertTrue (ex .getMessage ().contains ("Cannot reroute to substream" ));
7373 assertTrue (ex .getMessage ().contains (destination ));
7474 }
7575
76- public void testThrowIfRetrouteToSubstreamNotAllowedDoesNotThrowWhenStreamTypeDisabled () {
76+ public void testthrowIfRerouteToSubstreamNotAllowedDoesNotThrowWhenStreamTypeDisabled () {
7777 when (streamsMetadataMock .isLogsEnabled ()).thenReturn (false );
7878
7979 Set <String > indexHistory = Collections .emptySet ();
8080 String destination = StreamType .LOGS .getStreamName () + ".substream" ;
8181
8282 // Should not throw since stream type is disabled
83- utils .throwIfRetrouteToSubstreamNotAllowed (projectMetadataMock , indexHistory , destination );
83+ utils .throwIfRerouteToSubstreamNotAllowed (projectMetadataMock , indexHistory , destination );
8484 }
8585
86- public void testThrowIfRetrouteToSubstreamNotAllowedDoesNotThrowWhenDestinationNotSubstream () {
86+ public void testthrowIfRerouteToSubstreamNotAllowedDoesNotThrowWhenDestinationNotSubstream () {
8787 when (streamsMetadataMock .isLogsEnabled ()).thenReturn (true );
8888
8989 Set <String > indexHistory = Collections .emptySet ();
9090 String destination = StreamType .LOGS .getStreamName (); // not a substream
9191
9292 // Should not throw since destination is not a substream
93- utils .throwIfRetrouteToSubstreamNotAllowed (projectMetadataMock , indexHistory , destination );
93+ utils .throwIfRerouteToSubstreamNotAllowed (projectMetadataMock , indexHistory , destination );
9494 }
9595
96- public void testThrowIfRetrouteToSubstreamNotAllowedDoesNotThrowWhenIndexHistoryContainsStream () {
96+ public void testthrowIfRerouteToSubstreamNotAllowedDoesNotThrowWhenIndexHistoryContainsStream () {
9797 when (streamsMetadataMock .isLogsEnabled ()).thenReturn (true );
9898
9999 Set <String > indexHistory = new HashSet <>();
100100 indexHistory .add (StreamType .LOGS .getStreamName ());
101101 String destination = StreamType .LOGS .getStreamName () + ".substream" ;
102102
103103 // Should not throw since indexHistory contains the stream name
104- utils .throwIfRetrouteToSubstreamNotAllowed (projectMetadataMock , indexHistory , destination );
104+ utils .throwIfRerouteToSubstreamNotAllowed (projectMetadataMock , indexHistory , destination );
105105 }
106106}
0 commit comments