Search in sources :

Example 6 with InvocationDataPublication2

use of io.codekvast.javaagent.model.v2.InvocationDataPublication2 in project codekvast by crispab.

the class PublicationV2DeserializationTest method should_deserialize_invocationsV2_file.

@Test
public void should_deserialize_invocationsV2_file() throws IOException, ClassNotFoundException {
    ObjectInputStream ois = new ObjectInputStream(new BufferedInputStream(getClass().getResourceAsStream(INVOCATIONS_RESOURCE)));
    InvocationDataPublication2 publication = (InvocationDataPublication2) ois.readObject();
    assertThat(publication, isA(InvocationDataPublication2.class));
}
Also used : BufferedInputStream(java.io.BufferedInputStream) ObjectInputStream(java.io.ObjectInputStream) InvocationDataPublication2(io.codekvast.javaagent.model.v2.InvocationDataPublication2) Test(org.junit.jupiter.api.Test)

Aggregations

InvocationDataPublication2 (io.codekvast.javaagent.model.v2.InvocationDataPublication2)5 CommonPublicationData2 (io.codekvast.javaagent.model.v2.CommonPublicationData2)3 Test (org.junit.Test)3 SpringBootTest (org.springframework.boot.test.context.SpringBootTest)3 CodeBaseEntry3 (io.codekvast.javaagent.model.v3.CodeBaseEntry3)2 CodeBasePublication3 (io.codekvast.javaagent.model.v3.CodeBasePublication3)2 CodekvastPublishingException (io.codekvast.javaagent.publishing.CodekvastPublishingException)1 BufferedInputStream (java.io.BufferedInputStream)1 File (java.io.File)1 ObjectInputStream (java.io.ObjectInputStream)1 HashSet (java.util.HashSet)1 lombok.val (lombok.val)1 Test (org.junit.jupiter.api.Test)1 Transactional (org.springframework.transaction.annotation.Transactional)1