Skip to content
Snippets Groups Projects
Commit 3b4f6054 authored by Ceki Gulcu's avatar Ceki Gulcu
Browse files

fix test failures

parent 7fbea612
No related merge requests found
...@@ -9,7 +9,7 @@ import ch.qos.logback.core.net.HardenedObjectInputStream; ...@@ -9,7 +9,7 @@ import ch.qos.logback.core.net.HardenedObjectInputStream;
public class HardenedAccessEventInputStream extends HardenedObjectInputStream { public class HardenedAccessEventInputStream extends HardenedObjectInputStream {
public HardenedAccessEventInputStream(InputStream in) throws IOException { public HardenedAccessEventInputStream(InputStream in) throws IOException {
super(in, new String[] {AccessEvent.class.getName()}); super(in, new String[] {AccessEvent.class.getName(), String[].class.getName()});
} }
} }
...@@ -43,7 +43,9 @@ public class AccessEventSerializationTest { ...@@ -43,7 +43,9 @@ public class AccessEventSerializationTest {
ByteArrayInputStream bais = new ByteArrayInputStream(baos.toByteArray()); ByteArrayInputStream bais = new ByteArrayInputStream(baos.toByteArray());
HardenedAccessEventInputStream hardenedOIS = new HardenedAccessEventInputStream(bais); HardenedAccessEventInputStream hardenedOIS = new HardenedAccessEventInputStream(bais);
return hardenedOIS.readObject(); Object sae = hardenedOIS.readObject();
hardenedOIS.close();
return sae;
} }
@Test @Test
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment