Search in sources :

Example 1 with CommonPublicationData

use of io.codekvast.javaagent.model.v1.CommonPublicationData in project codekvast by crispab.

the class CommonPublicationData2Test method should_transform_from_v1_format.

@SuppressWarnings("deprecation")
@Test
public void should_transform_from_v1_format() {
    CommonPublicationData cd1 = CommonPublicationData.sampleCommonPublicationData();
    CommonPublicationData2 cd2 = CommonPublicationData2.sampleCommonPublicationData();
    assertThat(CommonPublicationData2.fromV1format(cd1), is(cd2));
}
Also used : CommonPublicationData(io.codekvast.javaagent.model.v1.CommonPublicationData) CommonPublicationData2(io.codekvast.javaagent.model.v2.CommonPublicationData2) Test(org.junit.Test)

Aggregations

CommonPublicationData (io.codekvast.javaagent.model.v1.CommonPublicationData)1 CommonPublicationData2 (io.codekvast.javaagent.model.v2.CommonPublicationData2)1 Test (org.junit.Test)1