@@ -0,0 +1,1403 @@
+package org.verapdf.model.impl.pb.pd;%0A%0Aimport org.apache.pdfbox.pdmodel.interactive.action.PDActionNamed;%0Aimport org.apache.pdfbox.pdmodel.interactive.documentnavigation.outline.PDOutlineItem;%0Aimport org.junit.AfterClass;%0Aimport org.junit.Assert;%0Aimport org.junit.BeforeClass;%0Aimport org.junit.Test;%0Aimport org.verapdf.model.pdlayer.PDAction;%0Aimport org.verapdf.model.pdlayer.PDNamedAction;%0A%0Aimport java.io.IOException;%0Aimport java.net.URISyntaxException;%0A%0A/**%0A * @author Evgeniy Muravitskiy%0A */%0Apublic class PBoxPDNamedActionTest extends PBoxPDActionTest %7B%0A%0A%09public static final String FILE_RELATIVE_PATH = %22pd/InteractiveObjects.pdf%22;%0A%0A%09@BeforeClass%0A%09public static void setUp() throws URISyntaxException, IOException %7B%0A%09%09expectedType = PBoxPDNamedAction.NAMED_ACTION_TYPE;%0A%09%09expectedID = null;%0A%0A%09%09setUp(FILE_RELATIVE_PATH);%0A%09%09PDOutlineItem node = document.getDocumentCatalog().getDocumentOutline().getFirstChild().getFirstChild();%0A%09%09actual = new PBoxPDNamedAction((PDActionNamed) node.getAction());%0A%09%7D%0A%0A%09// TODO : try to simplify%0A%09@Override%0A%09@Test%0A%09public void testSMethod() %7B%0A%09%09Assert.assertEquals(%22Named%22, ((PDAction) actual).getS());%0A%09%7D%0A%0A%09@Test%0A%09public void testNMethod() %7B%0A%09%09Assert.assertEquals(%22NextPage%22, ((PDNamedAction) actual).getN());%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 test for named actions