@@ -0,0 +1,2100 @@
+package org.verapdf.model.impl.pb.pd;%0A%0Aimport org.junit.AfterClass;%0Aimport org.junit.Assert;%0Aimport org.junit.BeforeClass;%0Aimport org.junit.Test;%0Aimport org.verapdf.model.baselayer.Object;%0Aimport org.verapdf.model.impl.BaseTest;%0Aimport org.verapdf.model.pdlayer.PDPage;%0A%0Aimport java.io.IOException;%0Aimport java.net.URISyntaxException;%0Aimport java.util.List;%0A%0A/**%0A * @author Evgeniy Muravitskiy%0A */%0Apublic class PBoxPDPageTest extends BaseTest %7B%0A%0A%09public static final String FILE_RELATIVE_PATH = %22cos/veraPDF test suite 6-1-2-t02-fail-a.pdf%22;%0A%0A%09@BeforeClass%0A%09public static void setUp() throws URISyntaxException, IOException %7B%0A%09%09expectedType = %22PDPage%22;%0A%09%09expectedID = null;%0A%0A%09%09setUp(FILE_RELATIVE_PATH);%0A%09%09actual = new PBoxPDPage(document.getPage(0));%0A%09%7D%0A%0A%09@Test%0A%09public void testGroupLink() %7B%0A%09%09List%3C? extends org.verapdf.model.baselayer.Object%3E groups = ((PDPage) actual).getLinkedObjects(PBoxPDPage.GROUP);%0A%09%09Assert.assertEquals(0, groups.size());%0A%09%09for (Object object : groups) %7B%0A%09%09%09Assert.assertEquals(%22PDGroup%22, object.getType());%0A%09%09%7D%0A%09%7D%0A%0A%09@Test%0A%09public void testAnnotsLink() %7B%0A%09%09List%3C? extends org.verapdf.model.baselayer.Object%3E annots = ((PDPage) actual).getLinkedObjects(PBoxPDPage.ANNOTS);%0A%09%09Assert.assertEquals(0, annots.size());%0A%09%09for (Object object : annots) %7B%0A%09%09%09Assert.assertEquals(%22PDAnnot%22, object.getType());%0A%09%09%7D%0A%09%7D%0A%0A%09@Test%0A%09public void testActionLink() %7B%0A%09%09List%3C? extends org.verapdf.model.baselayer.Object%3E actions = ((PDPage) actual).getLinkedObjects(PBoxPDPage.ACTION);%0A%09%09Assert.assertEquals(0, actions.size());%0A%09%09for (Object object : actions) %7B%0A%09%09%09Assert.assertEquals(%22PDAction%22, object.getType());%0A%09%09%7D%0A%09%7D%0A%0A%09@Test%0A%09public void testContentStreamLink() %7B%0A%09%09List%3C? extends org.verapdf.model.baselayer.Object%3E streams = ((PDPage) actual).getLinkedObjects(PBoxPDPage.CONTENT_STREAM);%0A%09%09Assert.assertEquals(1, streams.size());%0A%09%09for (Object object : streams) %7B%0A%09%09%09Assert.assertEquals(%22PDContentStream%22, object.getType());%0A%09%09%7D%0A%09%7D%0A%0A%09@AfterClass%0A%09public static void tearDown() throws IOException %7B%0A%09%09expectedType = null;%0A%09%09expectedID = null;%0A%09%09actual = null;%0A%0A%09%09document.close();%0A%09%7D%0A%7D%0A

Add page test