Skip to content

Commit c89e8ba

Browse files
committed
fix : fix tests
1 parent 6b64e70 commit c89e8ba

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

src/test/java/org/alxkm/patterns/synchronizers/CountDownLatchExampleTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ public class CountDownLatchExampleTest {
2222
* The test verifies that the latch count reached zero, ensuring all tasks were completed.
2323
* The ExecutorService is then shut down and awaits termination.
2424
*/
25-
//@Test
25+
@Test
2626
public void testCountDownLatch() throws InterruptedException {
2727
int taskCount = 5;
2828
CountDownLatchExample example = new CountDownLatchExample(taskCount);

src/test/java/org/alxkm/patterns/synchronizers/ExchangerExampleTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ public void setUp() {
2222
example = new ExchangerExample();
2323
}
2424

25-
//@Test
25+
@Test
2626
public void testExchanger() throws InterruptedException {
2727
// This test indirectly verifies the exchange process by starting the producer and consumer threads
2828
example.start();

src/test/java/org/alxkm/patterns/synchronizers/SemaphorePrintQueueExampleTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ public void setUp() {
2121
semaphorePrintQueueExample = new SemaphorePrintQueueExample(3); // Initialize with 3 permits
2222
}
2323

24-
//@Test
24+
@Test
2525
public void testPrintJob() throws InterruptedException {
2626
ExecutorService executorService = Executors.newFixedThreadPool(10);
2727

src/test/java/org/alxkm/patterns/twophasetermination/TwoPhaseTerminationTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ public class TwoPhaseTerminationTest {
1010
* This test method verifies the behavior of the Two-Phase Termination pattern implementation.
1111
* It ensures that a thread can be gracefully terminated using the Two-Phase Termination pattern.
1212
*/
13-
//@Test
13+
@Test
1414
public void testTwoPhaseTermination() throws InterruptedException {
1515
TwoPhaseTermination thread = new TwoPhaseTermination();
1616
thread.start();

0 commit comments

Comments
 (0)