⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 instorematchertestcase.java

📁 xbrlapi的源码
💻 JAVA
字号:
package org.xbrlapi.data.resource.tests;import java.net.URL;import org.xbrlapi.data.Store;import org.xbrlapi.data.dom.StoreImpl;import org.xbrlapi.data.resource.InStoreMatcherImpl;/** * Provides a base test case for tests involving the XML DOM data store. * @author Geoffrey Shuetrim (geoff@galexy.net) */public class InStoreMatcherTestCase extends BaseTestCase {        private Store store = null;	protected void setUp() throws Exception {		super.setUp();		store = new StoreImpl();        matcher = new InStoreMatcherImpl(store,cache);	}	    protected void tearDown() throws Exception {        super.tearDown();    }        public InStoreMatcherTestCase(String arg0) {        super(arg0);    }		    public void testGetSignatureFromSmallFile() {        try {            String URL = "test.data.small.schema";            URL url = new URL(this.getURL(URL));            logger.info(matcher.getSignature(url));        } catch (Exception e) {            e.printStackTrace();            fail("Unexpected exception thrown.");        }    }        public void testGetSignatureFromLargeFile() {        try {            String URL = "real.data.sec";            URL url = new URL(this.getURL(URL));            logger.info(matcher.getSignature(url));        } catch (Exception e) {            e.printStackTrace();            fail("Unexpected exception thrown.");        }    }        public void testRepeatedGetMatchFromLargeFile() {        try {            URL url1 = new URL(this.getURL("real.data.sec.usgaap.1"));            assertEquals(url1,matcher.getMatch(url1));            URL url2 = new URL(this.getURL("real.data.sec.usgaap.2"));            assertEquals(url1,matcher.getMatch(url2));            store.serialize(store.getStoreAsDOM().getDocumentElement());        } catch (Exception e) {            e.printStackTrace();            fail("Unexpected exception thrown.");        }    }    	}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -