2020
2121import org .junit .Ignore ;
2222import org .junit .Rule ;
23+ import org .junit .Test ;
2324import org .junit .rules .ExpectedException ;
2425
2526import java .io .IOException ;
5253import static org .junit .Assert .assertThat ;
5354import static org .junit .Assert .assertTrue ;
5455import static org .junit .Assert .fail ;
55-
56+ @ Ignore
5657public class ClusterDriverStubTest
5758{
5859 @ Rule
5960 public ExpectedException exception = ExpectedException .none ();
6061
6162 private static final Config config = Config .build ().withLogging ( new ConsoleLogging ( Level .INFO ) ).toConfig ();
6263
63- @ Ignore
64+ @ Test
6465 public void shouldDiscoverServers () throws IOException , InterruptedException , StubServer .ForceKilled
6566 {
6667 // Given
@@ -82,7 +83,7 @@ public void shouldDiscoverServers() throws IOException, InterruptedException, St
8283 assertThat ( server .exitStatus (), equalTo ( 0 ) );
8384 }
8485
85- @ Ignore
86+ @ Test
8687 public void shouldDiscoverNewServers () throws IOException , InterruptedException , StubServer .ForceKilled
8788 {
8889 // Given
@@ -105,7 +106,7 @@ public void shouldDiscoverNewServers() throws IOException, InterruptedException,
105106 assertThat ( server .exitStatus (), equalTo ( 0 ) );
106107 }
107108
108- @ Ignore
109+ @ Test
109110 public void shouldHandleEmptyResponse () throws IOException , InterruptedException , StubServer .ForceKilled
110111 {
111112 // Given
@@ -122,7 +123,7 @@ public void shouldHandleEmptyResponse() throws IOException, InterruptedException
122123 assertThat ( server .exitStatus (), equalTo ( 0 ) );
123124 }
124125
125- @ Ignore
126+ @ Test
126127 public void shouldHandleAcquireReadSession () throws IOException , InterruptedException , StubServer .ForceKilled
127128 {
128129 // Given
@@ -151,7 +152,7 @@ public String apply( Record record )
151152 assertThat ( readServer .exitStatus (), equalTo ( 0 ) );
152153 }
153154
154- @ Ignore
155+ @ Test
155156 public void shouldRoundRobinReadServers () throws IOException , InterruptedException , StubServer .ForceKilled
156157 {
157158 // Given
@@ -185,7 +186,7 @@ public String apply( Record record )
185186 assertThat ( readServer2 .exitStatus (), equalTo ( 0 ) );
186187 }
187188
188- @ Ignore
189+ @ Test
189190 public void shouldThrowSessionExpiredIfReadServerDisappears ()
190191 throws IOException , InterruptedException , StubServer .ForceKilled
191192 {
@@ -208,7 +209,7 @@ public void shouldThrowSessionExpiredIfReadServerDisappears()
208209 assertThat ( server .exitStatus (), equalTo ( 0 ) );
209210 }
210211
211- @ Ignore
212+ @ Test
212213 public void shouldThrowSessionExpiredIfWriteServerDisappears ()
213214 throws IOException , InterruptedException , StubServer .ForceKilled
214215 {
@@ -231,7 +232,7 @@ public void shouldThrowSessionExpiredIfWriteServerDisappears()
231232 assertThat ( server .exitStatus (), equalTo ( 0 ) );
232233 }
233234
234- @ Ignore
235+ @ Test
235236 public void shouldHandleAcquireWriteSession () throws IOException , InterruptedException , StubServer .ForceKilled
236237 {
237238 // Given
@@ -250,7 +251,7 @@ public void shouldHandleAcquireWriteSession() throws IOException, InterruptedExc
250251 assertThat ( writeServer .exitStatus (), equalTo ( 0 ) );
251252 }
252253
253- @ Ignore
254+ @ Test
254255 public void shouldRoundRobinWriteSessions () throws IOException , InterruptedException , StubServer .ForceKilled
255256 {
256257 // Given
@@ -276,7 +277,7 @@ public void shouldRoundRobinWriteSessions() throws IOException, InterruptedExcep
276277 assertThat ( writeServer2 .exitStatus (), equalTo ( 0 ) );
277278 }
278279
279- @ Ignore
280+ @ Test
280281 public void shouldRememberEndpoints () throws IOException , InterruptedException , StubServer .ForceKilled
281282 {
282283 // Given
@@ -305,7 +306,7 @@ public void shouldRememberEndpoints() throws IOException, InterruptedException,
305306 assertThat ( readServer .exitStatus (), equalTo ( 0 ) );
306307 }
307308
308- @ Ignore
309+ @ Test
309310 public void shouldForgetEndpointsOnFailure () throws IOException , InterruptedException , StubServer .ForceKilled
310311 {
311312 // Given
@@ -336,7 +337,7 @@ public void shouldForgetEndpointsOnFailure() throws IOException, InterruptedExce
336337 assertThat ( server .exitStatus (), equalTo ( 0 ) );
337338 }
338339
339- @ Ignore
340+ @ Test
340341 public void shouldRediscoverIfNecessaryOnSessionAcquisition () throws IOException , InterruptedException , StubServer .ForceKilled
341342 {
342343 // Given
@@ -366,7 +367,7 @@ public void shouldRediscoverIfNecessaryOnSessionAcquisition() throws IOException
366367 assertThat ( server .exitStatus (), equalTo ( 0 ) );
367368 }
368369
369- @ Ignore
370+ @ Test
370371 public void shouldOnlyGetServersOnce () throws IOException , InterruptedException , StubServer .ForceKilled
371372 {
372373 // Given
@@ -412,7 +413,7 @@ public void run()
412413 assertThat ( server .exitStatus (), equalTo ( 0 ) );
413414 }
414415
415- @ Ignore
416+ @ Test
416417 public void shouldFailOnNonDiscoverableServer () throws IOException , InterruptedException , StubServer .ForceKilled
417418 {
418419 // When
@@ -435,7 +436,7 @@ public void shouldFailOnNonDiscoverableServer() throws IOException, InterruptedE
435436 assertThat ( server .exitStatus (), equalTo ( 0 ) );
436437 }
437438
438- @ Ignore
439+ @ Test
439440 public void shouldHandleLeaderSwitchWhenWriting ()
440441 throws IOException , InterruptedException , StubServer .ForceKilled
441442 {
@@ -477,4 +478,4 @@ String resource( String fileName )
477478 }
478479 return resource .getFile ();
479480 }
480- }
481+ }
0 commit comments