xlinkdocumentationtestcase.java
来自「xbrlapi的源码」· Java 代码 · 共 45 行
JAVA
45 行
package org.xbrlapi.fragment.tests;import org.xbrlapi.DOMLoadingTestCase;import org.xbrlapi.FragmentList;import org.xbrlapi.XlinkDocumentation;/** * Tests the implementation of the org.xbrlapi.XlinkDocumentation interface. * Uses the DOM-based data store to ensure rapid testing. * @author Geoffrey Shuetrim (geoff@galexy.net) */public class XlinkDocumentationTestCase extends DOMLoadingTestCase { private final String STARTING_POINT = "test.data.extended.link.documentation.element"; protected void setUp() throws Exception { super.setUp(); loader.discover(this.getURL(STARTING_POINT)); } protected void tearDown() throws Exception { super.tearDown(); } public XlinkDocumentationTestCase(String arg0) { super(arg0); } /** * Test getting the roleType definition. */ public void testGetValue() { try { FragmentList<XlinkDocumentation> fragments = store.<XlinkDocumentation>getFragments("XlinkDocumentation"); XlinkDocumentation fragment = fragments.getFragment(0); assertEquals("Value of the documentation", fragment.getValue()); } catch (Exception e) { e.printStackTrace(); fail(e.getMessage()); } } }
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?