Skip to content

Commit

Permalink
Restoring tests
Browse files Browse the repository at this point in the history
  • Loading branch information
dionisislolas committed Mar 18, 2024
1 parent 4be6300 commit 70c8823
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
package com.github.davidcarboni.restolino.json;

import org.junit.Test;
import org.junit.function.ThrowingRunnable;

import java.io.IOException;
import java.nio.file.Files;
Expand All @@ -13,7 +12,7 @@
import java.util.concurrent.atomic.AtomicLong;

import static org.junit.Assert.assertNotEquals;
import static org.junit.Assert.assertThrows;
import static org.junit.Assert.assertNull;

/**
* Tests for {@link Serialiser}.
Expand Down Expand Up @@ -72,7 +71,7 @@ public Exception call() throws Exception {
// Then
// All tasks should complete without exceptions
for (Future<Exception> task : tasks) {
assertThrows(NullPointerException.class, (ThrowingRunnable) task.get());
assertNull(task.get());
}
// Sometimes another thread will have serialised before deserialisation:
assertNotEquals(same.get(), different.get());
Expand Down

0 comments on commit 70c8823

Please sign in to comment.