You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tika.apache.org by ju...@apache.org on 2011/09/18 12:39:12 UTC
svn commit: r1172242 [9/9] - in /tika/trunk:
tika-app/src/test/java/org/apache/tika/cli/
tika-core/src/main/java/org/apache/tika/detect/
tika-core/src/main/java/org/apache/tika/extractor/
tika-core/src/main/java/org/apache/tika/fork/ tika-core/src/main...
Modified: tika/trunk/tika-parsers/src/test/java/org/apache/tika/parser/chm/TestChmItspHeader.java
URL: http://svn.apache.org/viewvc/tika/trunk/tika-parsers/src/test/java/org/apache/tika/parser/chm/TestChmItspHeader.java?rev=1172242&r1=1172241&r2=1172242&view=diff
==============================================================================
--- tika/trunk/tika-parsers/src/test/java/org/apache/tika/parser/chm/TestChmItspHeader.java (original)
+++ tika/trunk/tika-parsers/src/test/java/org/apache/tika/parser/chm/TestChmItspHeader.java Sun Sep 18 10:39:08 2011
@@ -1,138 +1,138 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You under the Apache License, Version 2.0
- * (the "License"); you may not use this file except in compliance with
- * the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-package org.apache.tika.parser.chm;
-
-import junit.framework.Assert;
-import junit.framework.TestCase;
-
-import org.apache.tika.parser.chm.accessor.ChmItsfHeader;
-import org.apache.tika.parser.chm.accessor.ChmItspHeader;
-import org.apache.tika.parser.chm.core.ChmCommons;
-import org.apache.tika.parser.chm.core.ChmConstants;
-
-/**
- * Tests all public methods of the ChmItspHeader
- *
- */
-public class TestChmItspHeader extends TestCase {
- private ChmItspHeader chmItspHeader = null;
-
- public void setUp() throws Exception {
- byte[] data = TestParameters.chmData;
-
- ChmItsfHeader chmItsfHeader = new ChmItsfHeader();
- // chmItsfHeader.parse(Arrays.copyOfRange(data, 0,
- // ChmConstants.CHM_ITSF_V3_LEN - 1), chmItsfHeader);
- chmItsfHeader.parse(ChmCommons.copyOfRange(data, 0,
- ChmConstants.CHM_ITSF_V3_LEN - 1), chmItsfHeader);
-
- chmItspHeader = new ChmItspHeader();
- // chmItspHeader.parse(Arrays.copyOfRange( data, (int)
- // chmItsfHeader.getDirOffset(),
- // (int) chmItsfHeader.getDirOffset()
- // + ChmConstants.CHM_ITSP_V1_LEN), chmItspHeader);
- chmItspHeader.parse(ChmCommons.copyOfRange(data,
- (int) chmItsfHeader.getDirOffset(),
- (int) chmItsfHeader.getDirOffset()
- + ChmConstants.CHM_ITSP_V1_LEN), chmItspHeader);
- }
-
- public void testGetBlock_len() {
- Assert.assertEquals(TestParameters.VP_BLOCK_LENGTH,
- chmItspHeader.getBlock_len());
- }
-
- public void testGetBlockidx_intvl() {
- Assert.assertEquals(TestParameters.VP_BLOCK_INDEX_INTERVAL,
- chmItspHeader.getBlockidx_intvl());
- }
-
- public void testGetHeader_len() {
- Assert.assertEquals(TestParameters.VP_ITSP_HEADER_LENGTH,
- chmItspHeader.getHeader_len());
- }
-
- public void testGetIndex_depth() {
- Assert.assertEquals(TestParameters.VP_INDEX_DEPTH,
- chmItspHeader.getIndex_depth());
- }
-
- public void testGetIndex_head() {
- Assert.assertEquals(TestParameters.VP_INDEX_HEAD,
- chmItspHeader.getIndex_head());
- }
-
- public void testGetIndex_root() {
- Assert.assertEquals(TestParameters.VP_INDEX_ROOT,
- chmItspHeader.getIndex_root());
- }
-
- public void testGetLang_id() {
- Assert.assertEquals(TestParameters.VP_LANGUAGE_ID,
- chmItspHeader.getLang_id());
- }
-
- public void testGetNum_blocks() {
- Assert.assertEquals(TestParameters.VP_UNKNOWN_NUM_BLOCKS,
- chmItspHeader.getNum_blocks());
- }
-
- public void testGetUnknown_000c() {
- Assert.assertEquals(TestParameters.VP_ITSP_UNKNOWN_000C,
- chmItspHeader.getUnknown_000c());
- }
-
- public void testGetUnknown_0024() {
- Assert.assertEquals(TestParameters.VP_ITSP_UNKNOWN_0024,
- chmItspHeader.getUnknown_0024());
- }
-
- public void testGetUnknown_002() {
- Assert.assertEquals(TestParameters.VP_ITSP_UNKNOWN_002C,
- chmItspHeader.getUnknown_002c());
- }
-
- public void testGetUnknown_0044() {
- Assert.assertEquals(TestParameters.VP_ITSP_BYTEARR_LEN,
- chmItspHeader.getUnknown_0044().length);
- }
-
- public void testGetVersion() {
- Assert.assertEquals(TestParameters.VP_ITSP_VERSION,
- chmItspHeader.getVersion());
- }
-
- public void testGetSignature() {
- Assert.assertEquals(TestParameters.VP_ISTP_SIGNATURE, new String(
- chmItspHeader.getSignature()));
- }
-
- public void testGetSystem_uuid() {
- Assert.assertEquals(TestParameters.VP_ITSP_BYTEARR_LEN,
- chmItspHeader.getSystem_uuid().length);
- }
-
- public void testToString() {
- Assert.assertTrue(chmItspHeader.toString().contains(
- TestParameters.VP_ISTP_SIGNATURE));
- }
-
- public void tearDown() throws Exception {
- chmItspHeader = null;
- }
-
-}
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package org.apache.tika.parser.chm;
+
+import junit.framework.Assert;
+import junit.framework.TestCase;
+
+import org.apache.tika.parser.chm.accessor.ChmItsfHeader;
+import org.apache.tika.parser.chm.accessor.ChmItspHeader;
+import org.apache.tika.parser.chm.core.ChmCommons;
+import org.apache.tika.parser.chm.core.ChmConstants;
+
+/**
+ * Tests all public methods of the ChmItspHeader
+ *
+ */
+public class TestChmItspHeader extends TestCase {
+ private ChmItspHeader chmItspHeader = null;
+
+ public void setUp() throws Exception {
+ byte[] data = TestParameters.chmData;
+
+ ChmItsfHeader chmItsfHeader = new ChmItsfHeader();
+ // chmItsfHeader.parse(Arrays.copyOfRange(data, 0,
+ // ChmConstants.CHM_ITSF_V3_LEN - 1), chmItsfHeader);
+ chmItsfHeader.parse(ChmCommons.copyOfRange(data, 0,
+ ChmConstants.CHM_ITSF_V3_LEN - 1), chmItsfHeader);
+
+ chmItspHeader = new ChmItspHeader();
+ // chmItspHeader.parse(Arrays.copyOfRange( data, (int)
+ // chmItsfHeader.getDirOffset(),
+ // (int) chmItsfHeader.getDirOffset()
+ // + ChmConstants.CHM_ITSP_V1_LEN), chmItspHeader);
+ chmItspHeader.parse(ChmCommons.copyOfRange(data,
+ (int) chmItsfHeader.getDirOffset(),
+ (int) chmItsfHeader.getDirOffset()
+ + ChmConstants.CHM_ITSP_V1_LEN), chmItspHeader);
+ }
+
+ public void testGetBlock_len() {
+ Assert.assertEquals(TestParameters.VP_BLOCK_LENGTH,
+ chmItspHeader.getBlock_len());
+ }
+
+ public void testGetBlockidx_intvl() {
+ Assert.assertEquals(TestParameters.VP_BLOCK_INDEX_INTERVAL,
+ chmItspHeader.getBlockidx_intvl());
+ }
+
+ public void testGetHeader_len() {
+ Assert.assertEquals(TestParameters.VP_ITSP_HEADER_LENGTH,
+ chmItspHeader.getHeader_len());
+ }
+
+ public void testGetIndex_depth() {
+ Assert.assertEquals(TestParameters.VP_INDEX_DEPTH,
+ chmItspHeader.getIndex_depth());
+ }
+
+ public void testGetIndex_head() {
+ Assert.assertEquals(TestParameters.VP_INDEX_HEAD,
+ chmItspHeader.getIndex_head());
+ }
+
+ public void testGetIndex_root() {
+ Assert.assertEquals(TestParameters.VP_INDEX_ROOT,
+ chmItspHeader.getIndex_root());
+ }
+
+ public void testGetLang_id() {
+ Assert.assertEquals(TestParameters.VP_LANGUAGE_ID,
+ chmItspHeader.getLang_id());
+ }
+
+ public void testGetNum_blocks() {
+ Assert.assertEquals(TestParameters.VP_UNKNOWN_NUM_BLOCKS,
+ chmItspHeader.getNum_blocks());
+ }
+
+ public void testGetUnknown_000c() {
+ Assert.assertEquals(TestParameters.VP_ITSP_UNKNOWN_000C,
+ chmItspHeader.getUnknown_000c());
+ }
+
+ public void testGetUnknown_0024() {
+ Assert.assertEquals(TestParameters.VP_ITSP_UNKNOWN_0024,
+ chmItspHeader.getUnknown_0024());
+ }
+
+ public void testGetUnknown_002() {
+ Assert.assertEquals(TestParameters.VP_ITSP_UNKNOWN_002C,
+ chmItspHeader.getUnknown_002c());
+ }
+
+ public void testGetUnknown_0044() {
+ Assert.assertEquals(TestParameters.VP_ITSP_BYTEARR_LEN,
+ chmItspHeader.getUnknown_0044().length);
+ }
+
+ public void testGetVersion() {
+ Assert.assertEquals(TestParameters.VP_ITSP_VERSION,
+ chmItspHeader.getVersion());
+ }
+
+ public void testGetSignature() {
+ Assert.assertEquals(TestParameters.VP_ISTP_SIGNATURE, new String(
+ chmItspHeader.getSignature()));
+ }
+
+ public void testGetSystem_uuid() {
+ Assert.assertEquals(TestParameters.VP_ITSP_BYTEARR_LEN,
+ chmItspHeader.getSystem_uuid().length);
+ }
+
+ public void testToString() {
+ Assert.assertTrue(chmItspHeader.toString().contains(
+ TestParameters.VP_ISTP_SIGNATURE));
+ }
+
+ public void tearDown() throws Exception {
+ chmItspHeader = null;
+ }
+
+}
Propchange: tika/trunk/tika-parsers/src/test/java/org/apache/tika/parser/chm/TestChmItspHeader.java
------------------------------------------------------------------------------
svn:eol-style = native
Modified: tika/trunk/tika-parsers/src/test/java/org/apache/tika/parser/chm/TestChmLzxState.java
URL: http://svn.apache.org/viewvc/tika/trunk/tika-parsers/src/test/java/org/apache/tika/parser/chm/TestChmLzxState.java?rev=1172242&r1=1172241&r2=1172242&view=diff
==============================================================================
--- tika/trunk/tika-parsers/src/test/java/org/apache/tika/parser/chm/TestChmLzxState.java (original)
+++ tika/trunk/tika-parsers/src/test/java/org/apache/tika/parser/chm/TestChmLzxState.java Sun Sep 18 10:39:08 2011
@@ -1,97 +1,97 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You under the Apache License, Version 2.0
- * (the "License"); you may not use this file except in compliance with
- * the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-package org.apache.tika.parser.chm;
-
-import junit.framework.Assert;
-import junit.framework.TestCase;
-
-import org.apache.tika.exception.TikaException;
-import org.apache.tika.parser.chm.accessor.ChmDirectoryListingSet;
-import org.apache.tika.parser.chm.accessor.ChmItsfHeader;
-import org.apache.tika.parser.chm.accessor.ChmItspHeader;
-import org.apache.tika.parser.chm.accessor.ChmLzxcControlData;
-import org.apache.tika.parser.chm.core.ChmCommons;
-import org.apache.tika.parser.chm.core.ChmConstants;
-import org.apache.tika.parser.chm.lzx.ChmLzxState;
-
-public class TestChmLzxState extends TestCase {
- private ChmLzxState chmLzxState;
- private int windowSize;
-
- public void setUp() throws Exception {
- byte[] data = TestParameters.chmData;
-
- /* Creates and parses itsf header */
- ChmItsfHeader chmItsHeader = new ChmItsfHeader();
- // chmItsHeader.parse(Arrays.copyOfRange(data, 0,
- // ChmConstants.CHM_ITSF_V3_LEN - 1), chmItsHeader);
- chmItsHeader.parse(ChmCommons.copyOfRange(data, 0,
- ChmConstants.CHM_ITSF_V3_LEN - 1), chmItsHeader);
- /* Creates and parses itsp block */
- ChmItspHeader chmItspHeader = new ChmItspHeader();
- // chmItspHeader.parse(Arrays.copyOfRange( data, (int)
- // chmItsHeader.getDirOffset(),
- // (int) chmItsHeader.getDirOffset()
- // + ChmConstants.CHM_ITSP_V1_LEN), chmItspHeader);
- chmItspHeader.parse(ChmCommons.copyOfRange(data,
- (int) chmItsHeader.getDirOffset(),
- (int) chmItsHeader.getDirOffset()
- + ChmConstants.CHM_ITSP_V1_LEN), chmItspHeader);
-
- /* Creating instance of ChmDirListingContainer */
- ChmDirectoryListingSet chmDirListCont = new ChmDirectoryListingSet(
- data, chmItsHeader, chmItspHeader);
- int indexOfControlData = ChmCommons.indexOf(
- chmDirListCont.getDirectoryListingEntryList(),
- ChmConstants.CONTROL_DATA);
-
- int indexOfResetTable = ChmCommons.indexOfResetTableBlock(data,
- ChmConstants.LZXC.getBytes());
- byte[] dir_chunk = null;
- if (indexOfResetTable > 0) {
- // dir_chunk = Arrays.copyOfRange( data, indexOfResetTable,
- // indexOfResetTable
- // +
- // chmDirListCont.getDirectoryListingEntryList().get(indexOfControlData).getLength());
- dir_chunk = ChmCommons.copyOfRange(data, indexOfResetTable,
- indexOfResetTable
- + chmDirListCont.getDirectoryListingEntryList()
- .get(indexOfControlData).getLength());
- }
-
- ChmLzxcControlData clcd = new ChmLzxcControlData();
- clcd.parse(dir_chunk, clcd);
- windowSize = (int) clcd.getWindowSize();
- }
-
- public void testChmLzxStateConstructor() throws TikaException {
- chmLzxState = new ChmLzxState(windowSize);
- Assert.assertNotNull(chmLzxState);
- }
-
- public void testToString() throws TikaException {
- if (chmLzxState == null)
- testChmLzxStateConstructor();
- Assert.assertTrue(chmLzxState.toString().length() > 20);
- }
-
- // TODO add more tests
-
- public void tearDown() throws Exception {
- }
-
-}
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package org.apache.tika.parser.chm;
+
+import junit.framework.Assert;
+import junit.framework.TestCase;
+
+import org.apache.tika.exception.TikaException;
+import org.apache.tika.parser.chm.accessor.ChmDirectoryListingSet;
+import org.apache.tika.parser.chm.accessor.ChmItsfHeader;
+import org.apache.tika.parser.chm.accessor.ChmItspHeader;
+import org.apache.tika.parser.chm.accessor.ChmLzxcControlData;
+import org.apache.tika.parser.chm.core.ChmCommons;
+import org.apache.tika.parser.chm.core.ChmConstants;
+import org.apache.tika.parser.chm.lzx.ChmLzxState;
+
+public class TestChmLzxState extends TestCase {
+ private ChmLzxState chmLzxState;
+ private int windowSize;
+
+ public void setUp() throws Exception {
+ byte[] data = TestParameters.chmData;
+
+ /* Creates and parses itsf header */
+ ChmItsfHeader chmItsHeader = new ChmItsfHeader();
+ // chmItsHeader.parse(Arrays.copyOfRange(data, 0,
+ // ChmConstants.CHM_ITSF_V3_LEN - 1), chmItsHeader);
+ chmItsHeader.parse(ChmCommons.copyOfRange(data, 0,
+ ChmConstants.CHM_ITSF_V3_LEN - 1), chmItsHeader);
+ /* Creates and parses itsp block */
+ ChmItspHeader chmItspHeader = new ChmItspHeader();
+ // chmItspHeader.parse(Arrays.copyOfRange( data, (int)
+ // chmItsHeader.getDirOffset(),
+ // (int) chmItsHeader.getDirOffset()
+ // + ChmConstants.CHM_ITSP_V1_LEN), chmItspHeader);
+ chmItspHeader.parse(ChmCommons.copyOfRange(data,
+ (int) chmItsHeader.getDirOffset(),
+ (int) chmItsHeader.getDirOffset()
+ + ChmConstants.CHM_ITSP_V1_LEN), chmItspHeader);
+
+ /* Creating instance of ChmDirListingContainer */
+ ChmDirectoryListingSet chmDirListCont = new ChmDirectoryListingSet(
+ data, chmItsHeader, chmItspHeader);
+ int indexOfControlData = ChmCommons.indexOf(
+ chmDirListCont.getDirectoryListingEntryList(),
+ ChmConstants.CONTROL_DATA);
+
+ int indexOfResetTable = ChmCommons.indexOfResetTableBlock(data,
+ ChmConstants.LZXC.getBytes());
+ byte[] dir_chunk = null;
+ if (indexOfResetTable > 0) {
+ // dir_chunk = Arrays.copyOfRange( data, indexOfResetTable,
+ // indexOfResetTable
+ // +
+ // chmDirListCont.getDirectoryListingEntryList().get(indexOfControlData).getLength());
+ dir_chunk = ChmCommons.copyOfRange(data, indexOfResetTable,
+ indexOfResetTable
+ + chmDirListCont.getDirectoryListingEntryList()
+ .get(indexOfControlData).getLength());
+ }
+
+ ChmLzxcControlData clcd = new ChmLzxcControlData();
+ clcd.parse(dir_chunk, clcd);
+ windowSize = (int) clcd.getWindowSize();
+ }
+
+ public void testChmLzxStateConstructor() throws TikaException {
+ chmLzxState = new ChmLzxState(windowSize);
+ Assert.assertNotNull(chmLzxState);
+ }
+
+ public void testToString() throws TikaException {
+ if (chmLzxState == null)
+ testChmLzxStateConstructor();
+ Assert.assertTrue(chmLzxState.toString().length() > 20);
+ }
+
+ // TODO add more tests
+
+ public void tearDown() throws Exception {
+ }
+
+}
Propchange: tika/trunk/tika-parsers/src/test/java/org/apache/tika/parser/chm/TestChmLzxState.java
------------------------------------------------------------------------------
svn:eol-style = native
Modified: tika/trunk/tika-parsers/src/test/java/org/apache/tika/parser/chm/TestChmLzxcControlData.java
URL: http://svn.apache.org/viewvc/tika/trunk/tika-parsers/src/test/java/org/apache/tika/parser/chm/TestChmLzxcControlData.java?rev=1172242&r1=1172241&r2=1172242&view=diff
==============================================================================
--- tika/trunk/tika-parsers/src/test/java/org/apache/tika/parser/chm/TestChmLzxcControlData.java (original)
+++ tika/trunk/tika-parsers/src/test/java/org/apache/tika/parser/chm/TestChmLzxcControlData.java Sun Sep 18 10:39:08 2011
@@ -1,132 +1,132 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You under the Apache License, Version 2.0
- * (the "License"); you may not use this file except in compliance with
- * the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-package org.apache.tika.parser.chm;
-
-import junit.framework.Assert;
-import junit.framework.TestCase;
-
-import org.apache.tika.parser.chm.accessor.ChmDirectoryListingSet;
-import org.apache.tika.parser.chm.accessor.ChmItsfHeader;
-import org.apache.tika.parser.chm.accessor.ChmItspHeader;
-import org.apache.tika.parser.chm.accessor.ChmLzxcControlData;
-import org.apache.tika.parser.chm.core.ChmCommons;
-import org.apache.tika.parser.chm.core.ChmConstants;
-
-/**
- * Tests all public methods of ChmLzxcControlData block
- */
-public class TestChmLzxcControlData extends TestCase {
- private ChmLzxcControlData chmLzxcControlData = null;
-
- public void setUp() throws Exception {
- byte[] data = TestParameters.chmData;
- /* Creates and parses itsf header */
- ChmItsfHeader chmItsHeader = new ChmItsfHeader();
- // chmItsHeader.parse(Arrays.copyOfRange(data, 0,
- // ChmConstants.CHM_ITSF_V3_LEN - 1), chmItsHeader);
- chmItsHeader.parse(ChmCommons.copyOfRange(data, 0,
- ChmConstants.CHM_ITSF_V3_LEN - 1), chmItsHeader);
- /* Creates and parses itsp block */
- ChmItspHeader chmItspHeader = new ChmItspHeader();
- // chmItspHeader.parse(Arrays.copyOfRange( data, (int)
- // chmItsHeader.getDirOffset(),
- // (int) chmItsHeader.getDirOffset()
- // + ChmConstants.CHM_ITSP_V1_LEN), chmItspHeader);
- chmItspHeader.parse(ChmCommons.copyOfRange(data,
- (int) chmItsHeader.getDirOffset(),
- (int) chmItsHeader.getDirOffset()
- + ChmConstants.CHM_ITSP_V1_LEN), chmItspHeader);
- /* Creating instance of ChmDirListingContainer */
- ChmDirectoryListingSet chmDirListCont = new ChmDirectoryListingSet(
- data, chmItsHeader, chmItspHeader);
- int indexOfControlData = chmDirListCont.getControlDataIndex();
-
- int indexOfResetTable = ChmCommons.indexOfResetTableBlock(data,
- ChmConstants.LZXC.getBytes());
- byte[] dir_chunk = null;
- if (indexOfResetTable > 0) {
- // dir_chunk = Arrays.copyOfRange( data, indexOfResetTable,
- // indexOfResetTable
- // +
- // chmDirListCont.getDirectoryListingEntryList().get(indexOfControlData).getLength());
- dir_chunk = ChmCommons.copyOfRange(data, indexOfResetTable,
- indexOfResetTable
- + chmDirListCont.getDirectoryListingEntryList()
- .get(indexOfControlData).getLength());
- }
-
- /* Creates and parses control block */
- chmLzxcControlData = new ChmLzxcControlData();
- chmLzxcControlData.parse(dir_chunk, chmLzxcControlData);
-
- }
-
- public void testConstructorNotNull() {
- Assert.assertNotNull(chmLzxcControlData);
- }
-
- public void testGetResetInterval() {
- Assert.assertEquals(TestParameters.VP_RESET_INTERVAL,
- chmLzxcControlData.getResetInterval());
- }
-
- public void testGetSize() {
- Assert.assertEquals(TestParameters.VP_CONTROL_DATA_SIZE,
- chmLzxcControlData.getSize());
- }
-
- public void testGetUnknown_18() {
- Assert.assertEquals(TestParameters.VP_UNKNOWN_18,
- chmLzxcControlData.getUnknown_18());
- }
-
- public void testGetVersion() {
- Assert.assertEquals(TestParameters.VP_CONTROL_DATA_VERSION,
- chmLzxcControlData.getVersion());
- }
-
- public void testGetWindowSize() {
- Assert.assertEquals(TestParameters.VP_WINDOW_SIZE,
- chmLzxcControlData.getWindowSize());
- }
-
- public void testGetWindowsPerReset() {
- Assert.assertEquals(TestParameters.VP_WINDOWS_PER_RESET,
- chmLzxcControlData.getWindowsPerReset());
- }
-
- public void testGetToString() {
- Assert.assertTrue(chmLzxcControlData.toString().contains(
- TestParameters.VP_CONTROL_DATA_SIGNATURE));
- }
-
- public void testGetSignature() {
- Assert.assertEquals(
- TestParameters.VP_CONTROL_DATA_SIGNATURE.getBytes().length,
- chmLzxcControlData.getSignature().length);
- }
-
- public void testGetSignaure() {
- Assert.assertEquals(
- TestParameters.VP_CONTROL_DATA_SIGNATURE.getBytes().length,
- chmLzxcControlData.getSignature().length);
- }
-
- public void tearDown() throws Exception {
- }
-
-}
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package org.apache.tika.parser.chm;
+
+import junit.framework.Assert;
+import junit.framework.TestCase;
+
+import org.apache.tika.parser.chm.accessor.ChmDirectoryListingSet;
+import org.apache.tika.parser.chm.accessor.ChmItsfHeader;
+import org.apache.tika.parser.chm.accessor.ChmItspHeader;
+import org.apache.tika.parser.chm.accessor.ChmLzxcControlData;
+import org.apache.tika.parser.chm.core.ChmCommons;
+import org.apache.tika.parser.chm.core.ChmConstants;
+
+/**
+ * Tests all public methods of ChmLzxcControlData block
+ */
+public class TestChmLzxcControlData extends TestCase {
+ private ChmLzxcControlData chmLzxcControlData = null;
+
+ public void setUp() throws Exception {
+ byte[] data = TestParameters.chmData;
+ /* Creates and parses itsf header */
+ ChmItsfHeader chmItsHeader = new ChmItsfHeader();
+ // chmItsHeader.parse(Arrays.copyOfRange(data, 0,
+ // ChmConstants.CHM_ITSF_V3_LEN - 1), chmItsHeader);
+ chmItsHeader.parse(ChmCommons.copyOfRange(data, 0,
+ ChmConstants.CHM_ITSF_V3_LEN - 1), chmItsHeader);
+ /* Creates and parses itsp block */
+ ChmItspHeader chmItspHeader = new ChmItspHeader();
+ // chmItspHeader.parse(Arrays.copyOfRange( data, (int)
+ // chmItsHeader.getDirOffset(),
+ // (int) chmItsHeader.getDirOffset()
+ // + ChmConstants.CHM_ITSP_V1_LEN), chmItspHeader);
+ chmItspHeader.parse(ChmCommons.copyOfRange(data,
+ (int) chmItsHeader.getDirOffset(),
+ (int) chmItsHeader.getDirOffset()
+ + ChmConstants.CHM_ITSP_V1_LEN), chmItspHeader);
+ /* Creating instance of ChmDirListingContainer */
+ ChmDirectoryListingSet chmDirListCont = new ChmDirectoryListingSet(
+ data, chmItsHeader, chmItspHeader);
+ int indexOfControlData = chmDirListCont.getControlDataIndex();
+
+ int indexOfResetTable = ChmCommons.indexOfResetTableBlock(data,
+ ChmConstants.LZXC.getBytes());
+ byte[] dir_chunk = null;
+ if (indexOfResetTable > 0) {
+ // dir_chunk = Arrays.copyOfRange( data, indexOfResetTable,
+ // indexOfResetTable
+ // +
+ // chmDirListCont.getDirectoryListingEntryList().get(indexOfControlData).getLength());
+ dir_chunk = ChmCommons.copyOfRange(data, indexOfResetTable,
+ indexOfResetTable
+ + chmDirListCont.getDirectoryListingEntryList()
+ .get(indexOfControlData).getLength());
+ }
+
+ /* Creates and parses control block */
+ chmLzxcControlData = new ChmLzxcControlData();
+ chmLzxcControlData.parse(dir_chunk, chmLzxcControlData);
+
+ }
+
+ public void testConstructorNotNull() {
+ Assert.assertNotNull(chmLzxcControlData);
+ }
+
+ public void testGetResetInterval() {
+ Assert.assertEquals(TestParameters.VP_RESET_INTERVAL,
+ chmLzxcControlData.getResetInterval());
+ }
+
+ public void testGetSize() {
+ Assert.assertEquals(TestParameters.VP_CONTROL_DATA_SIZE,
+ chmLzxcControlData.getSize());
+ }
+
+ public void testGetUnknown_18() {
+ Assert.assertEquals(TestParameters.VP_UNKNOWN_18,
+ chmLzxcControlData.getUnknown_18());
+ }
+
+ public void testGetVersion() {
+ Assert.assertEquals(TestParameters.VP_CONTROL_DATA_VERSION,
+ chmLzxcControlData.getVersion());
+ }
+
+ public void testGetWindowSize() {
+ Assert.assertEquals(TestParameters.VP_WINDOW_SIZE,
+ chmLzxcControlData.getWindowSize());
+ }
+
+ public void testGetWindowsPerReset() {
+ Assert.assertEquals(TestParameters.VP_WINDOWS_PER_RESET,
+ chmLzxcControlData.getWindowsPerReset());
+ }
+
+ public void testGetToString() {
+ Assert.assertTrue(chmLzxcControlData.toString().contains(
+ TestParameters.VP_CONTROL_DATA_SIGNATURE));
+ }
+
+ public void testGetSignature() {
+ Assert.assertEquals(
+ TestParameters.VP_CONTROL_DATA_SIGNATURE.getBytes().length,
+ chmLzxcControlData.getSignature().length);
+ }
+
+ public void testGetSignaure() {
+ Assert.assertEquals(
+ TestParameters.VP_CONTROL_DATA_SIGNATURE.getBytes().length,
+ chmLzxcControlData.getSignature().length);
+ }
+
+ public void tearDown() throws Exception {
+ }
+
+}
Propchange: tika/trunk/tika-parsers/src/test/java/org/apache/tika/parser/chm/TestChmLzxcControlData.java
------------------------------------------------------------------------------
svn:eol-style = native
Modified: tika/trunk/tika-parsers/src/test/java/org/apache/tika/parser/chm/TestChmLzxcResetTable.java
URL: http://svn.apache.org/viewvc/tika/trunk/tika-parsers/src/test/java/org/apache/tika/parser/chm/TestChmLzxcResetTable.java?rev=1172242&r1=1172241&r2=1172242&view=diff
==============================================================================
--- tika/trunk/tika-parsers/src/test/java/org/apache/tika/parser/chm/TestChmLzxcResetTable.java (original)
+++ tika/trunk/tika-parsers/src/test/java/org/apache/tika/parser/chm/TestChmLzxcResetTable.java Sun Sep 18 10:39:08 2011
@@ -1,147 +1,147 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You under the Apache License, Version 2.0
- * (the "License"); you may not use this file except in compliance with
- * the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-package org.apache.tika.parser.chm;
-
-import junit.framework.Assert;
-import junit.framework.TestCase;
-
-import org.apache.tika.parser.chm.accessor.ChmDirectoryListingSet;
-import org.apache.tika.parser.chm.accessor.ChmItsfHeader;
-import org.apache.tika.parser.chm.accessor.ChmItspHeader;
-import org.apache.tika.parser.chm.accessor.ChmLzxcControlData;
-import org.apache.tika.parser.chm.accessor.ChmLzxcResetTable;
-import org.apache.tika.parser.chm.assertion.ChmAssert;
-import org.apache.tika.parser.chm.core.ChmCommons;
-import org.apache.tika.parser.chm.core.ChmConstants;
-
-public class TestChmLzxcResetTable extends TestCase {
- private ChmLzxcResetTable chmLzxcResetTable = null;
-
- public void setUp() throws Exception {
- byte[] data = TestParameters.chmData;
- /* Creates and parses itsf header */
- ChmItsfHeader chmItsfHeader = new ChmItsfHeader();
- // chmItsfHeader.parse(Arrays.copyOfRange(data, 0,
- // ChmConstants.CHM_ITSF_V3_LEN - 1), chmItsfHeader);
- chmItsfHeader.parse(ChmCommons.copyOfRange(data, 0,
- ChmConstants.CHM_ITSF_V3_LEN - 1), chmItsfHeader);
- /* Creates and parses itsp block */
- ChmItspHeader chmItspHeader = new ChmItspHeader();
- // chmItspHeader.parse(Arrays.copyOfRange( data, (int)
- // chmItsfHeader.getDirOffset(),
- // (int) chmItsfHeader.getDirOffset()
- // + ChmConstants.CHM_ITSP_V1_LEN), chmItspHeader);
- chmItspHeader.parse(ChmCommons.copyOfRange(data,
- (int) chmItsfHeader.getDirOffset(),
- (int) chmItsfHeader.getDirOffset()
- + ChmConstants.CHM_ITSP_V1_LEN), chmItspHeader);
- /* Creating instance of ChmDirListingContainer */
- ChmDirectoryListingSet chmDirListCont = new ChmDirectoryListingSet(
- data, chmItsfHeader, chmItspHeader);
- int indexOfControlData = chmDirListCont.getControlDataIndex();
-
- int indexOfResetTable = ChmCommons.indexOfResetTableBlock(data,
- ChmConstants.LZXC.getBytes());
- byte[] dir_chunk = null;
- if (indexOfResetTable > 0) {
- // dir_chunk = Arrays.copyOfRange( data, indexOfResetTable,
- // indexOfResetTable
- // +
- // chmDirListCont.getDirectoryListingEntryList().get(indexOfControlData).getLength());
- dir_chunk = ChmCommons.copyOfRange(data, indexOfResetTable,
- indexOfResetTable
- + chmDirListCont.getDirectoryListingEntryList()
- .get(indexOfControlData).getLength());
- }
-
- /* Creates and parses control block */
- ChmLzxcControlData chmLzxcControlData = new ChmLzxcControlData();
- chmLzxcControlData.parse(dir_chunk, chmLzxcControlData);
-
- indexOfResetTable = chmDirListCont.getResetTableIndex();
- chmLzxcResetTable = new ChmLzxcResetTable();
-
- int startIndex = (int) chmDirListCont.getDataOffset()
- + chmDirListCont.getDirectoryListingEntryList()
- .get(indexOfResetTable).getOffset();
-
- ChmAssert.assertCopyingDataIndex(startIndex, data.length);
-
- // dir_chunk = Arrays.copyOfRange(data, startIndex, startIndex
- // +
- // chmDirListCont.getDirectoryListingEntryList().get(indexOfResetTable).getLength());
- dir_chunk = ChmCommons.copyOfRange(
- data,
- startIndex,
- startIndex
- + chmDirListCont.getDirectoryListingEntryList()
- .get(indexOfResetTable).getLength());
-
- chmLzxcResetTable.parse(dir_chunk, chmLzxcResetTable);
- }
-
- public void testGetBlockAddress() {
- Assert.assertEquals(TestParameters.VP_RESET_TABLE_BA,
- chmLzxcResetTable.getBlockAddress().length);
- }
-
- public void testGetBlockCount() {
- Assert.assertEquals(TestParameters.VP_RESET_TABLE_BA,
- chmLzxcResetTable.getBlockCount());
- }
-
- public void testGetBlockLen() {
- Assert.assertEquals(TestParameters.VP_RES_TBL_BLOCK_LENGTH,
- chmLzxcResetTable.getBlockLen());
- }
-
- public void testGetCompressedLen() {
- Assert.assertEquals(TestParameters.VP_RES_TBL_COMPR_LENGTH,
- chmLzxcResetTable.getCompressedLen());
- }
-
- public void testGetTableOffset() {
- Assert.assertEquals(TestParameters.VP_TBL_OFFSET,
- chmLzxcResetTable.getTableOffset());
- }
-
- public void testGetUncompressedLen() {
- Assert.assertEquals(TestParameters.VP_RES_TBL_UNCOMP_LENGTH,
- chmLzxcResetTable.getUncompressedLen());
- }
-
- public void testGetUnknown() {
- Assert.assertEquals(TestParameters.VP_RES_TBL_UNKNOWN,
- chmLzxcResetTable.getUnknown());
- }
-
- public void testGetVersion() {
- Assert.assertEquals(TestParameters.VP_RES_TBL_VERSION,
- chmLzxcResetTable.getVersion());
- }
-
- public void testToString() {
- Assert.assertTrue(chmLzxcResetTable.toString().length() > 0);
- }
-
- // TODO: add setters to be tested
-
- public void tearDown() throws Exception {
- }
-
-}
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package org.apache.tika.parser.chm;
+
+import junit.framework.Assert;
+import junit.framework.TestCase;
+
+import org.apache.tika.parser.chm.accessor.ChmDirectoryListingSet;
+import org.apache.tika.parser.chm.accessor.ChmItsfHeader;
+import org.apache.tika.parser.chm.accessor.ChmItspHeader;
+import org.apache.tika.parser.chm.accessor.ChmLzxcControlData;
+import org.apache.tika.parser.chm.accessor.ChmLzxcResetTable;
+import org.apache.tika.parser.chm.assertion.ChmAssert;
+import org.apache.tika.parser.chm.core.ChmCommons;
+import org.apache.tika.parser.chm.core.ChmConstants;
+
+public class TestChmLzxcResetTable extends TestCase {
+ private ChmLzxcResetTable chmLzxcResetTable = null;
+
+ public void setUp() throws Exception {
+ byte[] data = TestParameters.chmData;
+ /* Creates and parses itsf header */
+ ChmItsfHeader chmItsfHeader = new ChmItsfHeader();
+ // chmItsfHeader.parse(Arrays.copyOfRange(data, 0,
+ // ChmConstants.CHM_ITSF_V3_LEN - 1), chmItsfHeader);
+ chmItsfHeader.parse(ChmCommons.copyOfRange(data, 0,
+ ChmConstants.CHM_ITSF_V3_LEN - 1), chmItsfHeader);
+ /* Creates and parses itsp block */
+ ChmItspHeader chmItspHeader = new ChmItspHeader();
+ // chmItspHeader.parse(Arrays.copyOfRange( data, (int)
+ // chmItsfHeader.getDirOffset(),
+ // (int) chmItsfHeader.getDirOffset()
+ // + ChmConstants.CHM_ITSP_V1_LEN), chmItspHeader);
+ chmItspHeader.parse(ChmCommons.copyOfRange(data,
+ (int) chmItsfHeader.getDirOffset(),
+ (int) chmItsfHeader.getDirOffset()
+ + ChmConstants.CHM_ITSP_V1_LEN), chmItspHeader);
+ /* Creating instance of ChmDirListingContainer */
+ ChmDirectoryListingSet chmDirListCont = new ChmDirectoryListingSet(
+ data, chmItsfHeader, chmItspHeader);
+ int indexOfControlData = chmDirListCont.getControlDataIndex();
+
+ int indexOfResetTable = ChmCommons.indexOfResetTableBlock(data,
+ ChmConstants.LZXC.getBytes());
+ byte[] dir_chunk = null;
+ if (indexOfResetTable > 0) {
+ // dir_chunk = Arrays.copyOfRange( data, indexOfResetTable,
+ // indexOfResetTable
+ // +
+ // chmDirListCont.getDirectoryListingEntryList().get(indexOfControlData).getLength());
+ dir_chunk = ChmCommons.copyOfRange(data, indexOfResetTable,
+ indexOfResetTable
+ + chmDirListCont.getDirectoryListingEntryList()
+ .get(indexOfControlData).getLength());
+ }
+
+ /* Creates and parses control block */
+ ChmLzxcControlData chmLzxcControlData = new ChmLzxcControlData();
+ chmLzxcControlData.parse(dir_chunk, chmLzxcControlData);
+
+ indexOfResetTable = chmDirListCont.getResetTableIndex();
+ chmLzxcResetTable = new ChmLzxcResetTable();
+
+ int startIndex = (int) chmDirListCont.getDataOffset()
+ + chmDirListCont.getDirectoryListingEntryList()
+ .get(indexOfResetTable).getOffset();
+
+ ChmAssert.assertCopyingDataIndex(startIndex, data.length);
+
+ // dir_chunk = Arrays.copyOfRange(data, startIndex, startIndex
+ // +
+ // chmDirListCont.getDirectoryListingEntryList().get(indexOfResetTable).getLength());
+ dir_chunk = ChmCommons.copyOfRange(
+ data,
+ startIndex,
+ startIndex
+ + chmDirListCont.getDirectoryListingEntryList()
+ .get(indexOfResetTable).getLength());
+
+ chmLzxcResetTable.parse(dir_chunk, chmLzxcResetTable);
+ }
+
+ public void testGetBlockAddress() {
+ Assert.assertEquals(TestParameters.VP_RESET_TABLE_BA,
+ chmLzxcResetTable.getBlockAddress().length);
+ }
+
+ public void testGetBlockCount() {
+ Assert.assertEquals(TestParameters.VP_RESET_TABLE_BA,
+ chmLzxcResetTable.getBlockCount());
+ }
+
+ public void testGetBlockLen() {
+ Assert.assertEquals(TestParameters.VP_RES_TBL_BLOCK_LENGTH,
+ chmLzxcResetTable.getBlockLen());
+ }
+
+ public void testGetCompressedLen() {
+ Assert.assertEquals(TestParameters.VP_RES_TBL_COMPR_LENGTH,
+ chmLzxcResetTable.getCompressedLen());
+ }
+
+ public void testGetTableOffset() {
+ Assert.assertEquals(TestParameters.VP_TBL_OFFSET,
+ chmLzxcResetTable.getTableOffset());
+ }
+
+ public void testGetUncompressedLen() {
+ Assert.assertEquals(TestParameters.VP_RES_TBL_UNCOMP_LENGTH,
+ chmLzxcResetTable.getUncompressedLen());
+ }
+
+ public void testGetUnknown() {
+ Assert.assertEquals(TestParameters.VP_RES_TBL_UNKNOWN,
+ chmLzxcResetTable.getUnknown());
+ }
+
+ public void testGetVersion() {
+ Assert.assertEquals(TestParameters.VP_RES_TBL_VERSION,
+ chmLzxcResetTable.getVersion());
+ }
+
+ public void testToString() {
+ Assert.assertTrue(chmLzxcResetTable.toString().length() > 0);
+ }
+
+ // TODO: add setters to be tested
+
+ public void tearDown() throws Exception {
+ }
+
+}
Propchange: tika/trunk/tika-parsers/src/test/java/org/apache/tika/parser/chm/TestChmLzxcResetTable.java
------------------------------------------------------------------------------
svn:eol-style = native
Modified: tika/trunk/tika-parsers/src/test/java/org/apache/tika/parser/chm/TestDirectoryListingEntry.java
URL: http://svn.apache.org/viewvc/tika/trunk/tika-parsers/src/test/java/org/apache/tika/parser/chm/TestDirectoryListingEntry.java?rev=1172242&r1=1172241&r2=1172242&view=diff
==============================================================================
--- tika/trunk/tika-parsers/src/test/java/org/apache/tika/parser/chm/TestDirectoryListingEntry.java (original)
+++ tika/trunk/tika-parsers/src/test/java/org/apache/tika/parser/chm/TestDirectoryListingEntry.java Sun Sep 18 10:39:08 2011
@@ -1,74 +1,74 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You under the Apache License, Version 2.0
- * (the "License"); you may not use this file except in compliance with
- * the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-package org.apache.tika.parser.chm;
-
-import junit.framework.Assert;
-import junit.framework.TestCase;
-
-import org.apache.tika.parser.chm.accessor.DirectoryListingEntry;
-
-/**
- * Tests public methods of the DirectoryListingEntry class
- *
- * @author olegt
- *
- */
-public class TestDirectoryListingEntry extends TestCase {
- private DirectoryListingEntry dle = null;
-
- public void setUp() throws Exception {
- dle = new DirectoryListingEntry(TestParameters.nameLength,
- TestParameters.entryName, TestParameters.entryType,
- TestParameters.offset, TestParameters.length);
- }
-
- public void testDefaultConstructor() {
- Assert.assertNotNull(dle);
- }
-
- public void testParamConstructor() {
- Assert.assertEquals(TestParameters.nameLength, dle.getNameLength());
- Assert.assertEquals(TestParameters.entryName, dle.getName());
- Assert.assertEquals(TestParameters.entryType, dle.getEntryType());
- Assert.assertEquals(TestParameters.offset, dle.getOffset());
- Assert.assertEquals(TestParameters.length, dle.getLength());
- }
-
- public void testToString() {
- Assert.assertNotNull(dle.toString());
- }
-
- public void testGetNameLength() {
- Assert.assertEquals(TestParameters.nameLength, dle.getNameLength());
- }
-
- public void testGetName() {
- Assert.assertEquals(TestParameters.entryName, dle.getName());
- }
-
- public void testGetEntryType() {
- Assert.assertEquals(TestParameters.entryType, dle.getEntryType());
- }
-
- public void testGetOffset() {
- Assert.assertEquals(TestParameters.offset, dle.getOffset());
- }
-
- public void testGetLength() {
- Assert.assertEquals(TestParameters.length, dle.getLength());
- }
-}
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package org.apache.tika.parser.chm;
+
+import junit.framework.Assert;
+import junit.framework.TestCase;
+
+import org.apache.tika.parser.chm.accessor.DirectoryListingEntry;
+
+/**
+ * Tests public methods of the DirectoryListingEntry class
+ *
+ * @author olegt
+ *
+ */
+public class TestDirectoryListingEntry extends TestCase {
+ private DirectoryListingEntry dle = null;
+
+ public void setUp() throws Exception {
+ dle = new DirectoryListingEntry(TestParameters.nameLength,
+ TestParameters.entryName, TestParameters.entryType,
+ TestParameters.offset, TestParameters.length);
+ }
+
+ public void testDefaultConstructor() {
+ Assert.assertNotNull(dle);
+ }
+
+ public void testParamConstructor() {
+ Assert.assertEquals(TestParameters.nameLength, dle.getNameLength());
+ Assert.assertEquals(TestParameters.entryName, dle.getName());
+ Assert.assertEquals(TestParameters.entryType, dle.getEntryType());
+ Assert.assertEquals(TestParameters.offset, dle.getOffset());
+ Assert.assertEquals(TestParameters.length, dle.getLength());
+ }
+
+ public void testToString() {
+ Assert.assertNotNull(dle.toString());
+ }
+
+ public void testGetNameLength() {
+ Assert.assertEquals(TestParameters.nameLength, dle.getNameLength());
+ }
+
+ public void testGetName() {
+ Assert.assertEquals(TestParameters.entryName, dle.getName());
+ }
+
+ public void testGetEntryType() {
+ Assert.assertEquals(TestParameters.entryType, dle.getEntryType());
+ }
+
+ public void testGetOffset() {
+ Assert.assertEquals(TestParameters.offset, dle.getOffset());
+ }
+
+ public void testGetLength() {
+ Assert.assertEquals(TestParameters.length, dle.getLength());
+ }
+}
Propchange: tika/trunk/tika-parsers/src/test/java/org/apache/tika/parser/chm/TestDirectoryListingEntry.java
------------------------------------------------------------------------------
svn:eol-style = native
Modified: tika/trunk/tika-parsers/src/test/java/org/apache/tika/parser/chm/TestParameters.java
URL: http://svn.apache.org/viewvc/tika/trunk/tika-parsers/src/test/java/org/apache/tika/parser/chm/TestParameters.java?rev=1172242&r1=1172241&r2=1172242&view=diff
==============================================================================
--- tika/trunk/tika-parsers/src/test/java/org/apache/tika/parser/chm/TestParameters.java (original)
+++ tika/trunk/tika-parsers/src/test/java/org/apache/tika/parser/chm/TestParameters.java Sun Sep 18 10:39:08 2011
@@ -1,107 +1,107 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You under the Apache License, Version 2.0
- * (the "License"); you may not use this file except in compliance with
- * the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-package org.apache.tika.parser.chm;
-
-import java.io.IOException;
-import java.io.InputStream;
-
-import org.apache.tika.io.IOUtils;
-import org.apache.tika.parser.chm.core.ChmCommons.EntryType;
-
-/**
- * Holds test parameters such as verification points
- */
-public class TestParameters {
- /* Prevents initialization */
- private TestParameters() {
- }
-
- /* Tests values */
- static final int nameLength = 5;
- static final String entryName = TestParameters.class.getName();
- static EntryType entryType = EntryType.COMPRESSED;
- static final int offset = 3;
- static final int length = 20;
- static final int NTHREADS = 2;
-
- static final int BUFFER_SIZE = 16384;
-
- static final byte[] chmData = readResource("/test-documents/testChm.chm");
-
- private static byte[] readResource(String name) {
- try {
- InputStream stream = TestParameters.class.getResourceAsStream(name);
- try {
- return IOUtils.toByteArray(stream);
- } finally {
- stream.close();
- }
- } catch (IOException e) {
- throw new RuntimeException(e);
- }
- }
-
- /* Verification points */
- static final String VP_CHM_MIME_TYPE = "Content-Type=application/x-chm";
- static final String VP_EXTRACTED_TEXT = "The TCard method accepts only numeric arguments";
- static final String VP_ISTF_SIGNATURE = "ITSF";
- static final String VP_ISTP_SIGNATURE = "ITSP";
- static final String VP_PMGL_SIGNATURE = "PMGL";
- static final String VP_CONTROL_DATA_SIGNATURE = "LZXC";
-
- static final int VP_DIRECTORY_LENGTH = 4180;
- static final int VP_DATA_OFFSET_LENGTH = 4300;
- static final int VP_DIRECTORY_OFFSET = 120;
- static final int VP_ITSF_HEADER_LENGTH = 96;
- static final int VP_LANGUAGE_ID = 1033;
- static final int VP_LAST_MODIFIED = 1042357880;
- static final int VP_UNKNOWN_000C = 1;
- static final int VP_UNKNOWN_LEN = 24;
- static final int VP_UNKNOWN_OFFSET = 96;
- static final int VP_VERSION = 3;
- static final int VP_BLOCK_LENGTH = 4096;
- static final int VP_BLOCK_INDEX_INTERVAL = 2;
- static final int VP_ITSP_HEADER_LENGTH = 84;
- static final int VP_INDEX_DEPTH = 1;
- static final int VP_INDEX_HEAD = 0;
- static final int VP_INDEX_ROOT = -1;
- static final int VP_UNKNOWN_NUM_BLOCKS = -1;
- static final int VP_ITSP_UNKNOWN_000C = 10;
- static final int VP_ITSP_UNKNOWN_0024 = 0;
- static final int VP_ITSP_UNKNOWN_002C = 1;
- static final int VP_ITSP_BYTEARR_LEN = 16;
- static final int VP_ITSP_VERSION = 1;
- static final int VP_RESET_INTERVAL = 2;
- static final int VP_CONTROL_DATA_SIZE = 6;
- static final int VP_UNKNOWN_18 = 0;
- static final int VP_CONTROL_DATA_VERSION = 2;
- static final int VP_WINDOW_SIZE = 65536;
- static final int VP_WINDOWS_PER_RESET = 1;
- static final int VP_CHM_ENTITIES_NUMBER = 101;
- static final int VP_PMGI_FREE_SPACE = 3;
- static final int VP_PMGL_BLOCK_NEXT = -1;
- static final int VP_PMGL_BLOCK_PREV = -1;
- static final int VP_PMGL_FREE_SPACE = 1644;
- static final int VP_PMGL_UNKNOWN_008 = 0;
- static final int VP_RESET_TABLE_BA = 12;
- static final int VP_RES_TBL_BLOCK_LENGTH = 32768;
- static final int VP_RES_TBL_COMPR_LENGTH = 177408;
- static final int VP_RES_TBL_UNCOMP_LENGTH = 383786;
- static final int VP_TBL_OFFSET = 40;
- static final int VP_RES_TBL_UNKNOWN = 8;
- static final int VP_RES_TBL_VERSION = 2;
-}
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package org.apache.tika.parser.chm;
+
+import java.io.IOException;
+import java.io.InputStream;
+
+import org.apache.tika.io.IOUtils;
+import org.apache.tika.parser.chm.core.ChmCommons.EntryType;
+
+/**
+ * Holds test parameters such as verification points
+ */
+public class TestParameters {
+ /* Prevents initialization */
+ private TestParameters() {
+ }
+
+ /* Tests values */
+ static final int nameLength = 5;
+ static final String entryName = TestParameters.class.getName();
+ static EntryType entryType = EntryType.COMPRESSED;
+ static final int offset = 3;
+ static final int length = 20;
+ static final int NTHREADS = 2;
+
+ static final int BUFFER_SIZE = 16384;
+
+ static final byte[] chmData = readResource("/test-documents/testChm.chm");
+
+ private static byte[] readResource(String name) {
+ try {
+ InputStream stream = TestParameters.class.getResourceAsStream(name);
+ try {
+ return IOUtils.toByteArray(stream);
+ } finally {
+ stream.close();
+ }
+ } catch (IOException e) {
+ throw new RuntimeException(e);
+ }
+ }
+
+ /* Verification points */
+ static final String VP_CHM_MIME_TYPE = "Content-Type=application/x-chm";
+ static final String VP_EXTRACTED_TEXT = "The TCard method accepts only numeric arguments";
+ static final String VP_ISTF_SIGNATURE = "ITSF";
+ static final String VP_ISTP_SIGNATURE = "ITSP";
+ static final String VP_PMGL_SIGNATURE = "PMGL";
+ static final String VP_CONTROL_DATA_SIGNATURE = "LZXC";
+
+ static final int VP_DIRECTORY_LENGTH = 4180;
+ static final int VP_DATA_OFFSET_LENGTH = 4300;
+ static final int VP_DIRECTORY_OFFSET = 120;
+ static final int VP_ITSF_HEADER_LENGTH = 96;
+ static final int VP_LANGUAGE_ID = 1033;
+ static final int VP_LAST_MODIFIED = 1042357880;
+ static final int VP_UNKNOWN_000C = 1;
+ static final int VP_UNKNOWN_LEN = 24;
+ static final int VP_UNKNOWN_OFFSET = 96;
+ static final int VP_VERSION = 3;
+ static final int VP_BLOCK_LENGTH = 4096;
+ static final int VP_BLOCK_INDEX_INTERVAL = 2;
+ static final int VP_ITSP_HEADER_LENGTH = 84;
+ static final int VP_INDEX_DEPTH = 1;
+ static final int VP_INDEX_HEAD = 0;
+ static final int VP_INDEX_ROOT = -1;
+ static final int VP_UNKNOWN_NUM_BLOCKS = -1;
+ static final int VP_ITSP_UNKNOWN_000C = 10;
+ static final int VP_ITSP_UNKNOWN_0024 = 0;
+ static final int VP_ITSP_UNKNOWN_002C = 1;
+ static final int VP_ITSP_BYTEARR_LEN = 16;
+ static final int VP_ITSP_VERSION = 1;
+ static final int VP_RESET_INTERVAL = 2;
+ static final int VP_CONTROL_DATA_SIZE = 6;
+ static final int VP_UNKNOWN_18 = 0;
+ static final int VP_CONTROL_DATA_VERSION = 2;
+ static final int VP_WINDOW_SIZE = 65536;
+ static final int VP_WINDOWS_PER_RESET = 1;
+ static final int VP_CHM_ENTITIES_NUMBER = 101;
+ static final int VP_PMGI_FREE_SPACE = 3;
+ static final int VP_PMGL_BLOCK_NEXT = -1;
+ static final int VP_PMGL_BLOCK_PREV = -1;
+ static final int VP_PMGL_FREE_SPACE = 1644;
+ static final int VP_PMGL_UNKNOWN_008 = 0;
+ static final int VP_RESET_TABLE_BA = 12;
+ static final int VP_RES_TBL_BLOCK_LENGTH = 32768;
+ static final int VP_RES_TBL_COMPR_LENGTH = 177408;
+ static final int VP_RES_TBL_UNCOMP_LENGTH = 383786;
+ static final int VP_TBL_OFFSET = 40;
+ static final int VP_RES_TBL_UNKNOWN = 8;
+ static final int VP_RES_TBL_VERSION = 2;
+}
Propchange: tika/trunk/tika-parsers/src/test/java/org/apache/tika/parser/chm/TestParameters.java
------------------------------------------------------------------------------
svn:eol-style = native
Modified: tika/trunk/tika-parsers/src/test/java/org/apache/tika/parser/chm/TestPmgiHeader.java
URL: http://svn.apache.org/viewvc/tika/trunk/tika-parsers/src/test/java/org/apache/tika/parser/chm/TestPmgiHeader.java?rev=1172242&r1=1172241&r2=1172242&view=diff
==============================================================================
--- tika/trunk/tika-parsers/src/test/java/org/apache/tika/parser/chm/TestPmgiHeader.java (original)
+++ tika/trunk/tika-parsers/src/test/java/org/apache/tika/parser/chm/TestPmgiHeader.java Sun Sep 18 10:39:08 2011
@@ -1,43 +1,43 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You under the Apache License, Version 2.0
- * (the "License"); you may not use this file except in compliance with
- * the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-package org.apache.tika.parser.chm;
-
-import junit.framework.Assert;
-import junit.framework.TestCase;
-
-import org.apache.tika.parser.chm.accessor.ChmPmgiHeader;
-
-public class TestPmgiHeader extends TestCase {
- ChmPmgiHeader chmPmgiHeader = null;
-
- public void setUp() throws Exception {
- byte[] data = TestParameters.chmData;
- chmPmgiHeader = new ChmPmgiHeader();
- chmPmgiHeader.parse(data, chmPmgiHeader);
- }
-
- public void testToString() {
- Assert.assertTrue((chmPmgiHeader != null) && (chmPmgiHeader.toString().length() > 0));
- }
-
- public void testGetFreeSpace() {
- Assert.assertEquals(TestParameters.VP_PMGI_FREE_SPACE, chmPmgiHeader.getFreeSpace());
- }
-
- public void tearDown() throws Exception {
- }
-}
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package org.apache.tika.parser.chm;
+
+import junit.framework.Assert;
+import junit.framework.TestCase;
+
+import org.apache.tika.parser.chm.accessor.ChmPmgiHeader;
+
+public class TestPmgiHeader extends TestCase {
+ ChmPmgiHeader chmPmgiHeader = null;
+
+ public void setUp() throws Exception {
+ byte[] data = TestParameters.chmData;
+ chmPmgiHeader = new ChmPmgiHeader();
+ chmPmgiHeader.parse(data, chmPmgiHeader);
+ }
+
+ public void testToString() {
+ Assert.assertTrue((chmPmgiHeader != null) && (chmPmgiHeader.toString().length() > 0));
+ }
+
+ public void testGetFreeSpace() {
+ Assert.assertEquals(TestParameters.VP_PMGI_FREE_SPACE, chmPmgiHeader.getFreeSpace());
+ }
+
+ public void tearDown() throws Exception {
+ }
+}
Propchange: tika/trunk/tika-parsers/src/test/java/org/apache/tika/parser/chm/TestPmgiHeader.java
------------------------------------------------------------------------------
svn:eol-style = native
Modified: tika/trunk/tika-parsers/src/test/java/org/apache/tika/parser/chm/TestPmglHeader.java
URL: http://svn.apache.org/viewvc/tika/trunk/tika-parsers/src/test/java/org/apache/tika/parser/chm/TestPmglHeader.java?rev=1172242&r1=1172241&r2=1172242&view=diff
==============================================================================
--- tika/trunk/tika-parsers/src/test/java/org/apache/tika/parser/chm/TestPmglHeader.java (original)
+++ tika/trunk/tika-parsers/src/test/java/org/apache/tika/parser/chm/TestPmglHeader.java Sun Sep 18 10:39:08 2011
@@ -1,69 +1,69 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You under the Apache License, Version 2.0
- * (the "License"); you may not use this file except in compliance with
- * the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-package org.apache.tika.parser.chm;
-
-import junit.framework.Assert;
-import junit.framework.TestCase;
-
-import org.apache.tika.parser.chm.accessor.ChmPmglHeader;
-import org.apache.tika.parser.chm.core.ChmCommons;
-import org.apache.tika.parser.chm.core.ChmConstants;
-
-public class TestPmglHeader extends TestCase {
- ChmPmglHeader chmPmglHeader = null;
-
- public void setUp() throws Exception {
- byte[] data = TestParameters.chmData;
- chmPmglHeader = new ChmPmglHeader();
- chmPmglHeader.parse(ChmCommons.copyOfRange(data,
- ChmConstants.START_PMGL, ChmConstants.START_PMGL
- + ChmConstants.CHM_PMGL_LEN + 10), chmPmglHeader);
- }
-
- public void testToString() {
- Assert.assertTrue((chmPmglHeader != null)
- && chmPmglHeader.toString().length() > 0);
- }
-
- public void testChmPmglHeaderGet() {
- Assert.assertEquals(TestParameters.VP_PMGL_SIGNATURE, new String(
- chmPmglHeader.getSignature()));
- }
-
- public void testGetBlockNext() {
- Assert.assertEquals(TestParameters.VP_PMGL_BLOCK_NEXT,
- chmPmglHeader.getBlockNext());
- }
-
- public void testGetBlockPrev() {
- Assert.assertEquals(TestParameters.VP_PMGL_BLOCK_PREV,
- chmPmglHeader.getBlockPrev());
- }
-
- public void testGetFreeSpace() {
- Assert.assertEquals(TestParameters.VP_PMGL_FREE_SPACE,
- chmPmglHeader.getFreeSpace());
- }
-
- public void testGetUnknown0008() {
- Assert.assertEquals(TestParameters.VP_PMGL_UNKNOWN_008,
- chmPmglHeader.getUnknown0008());
- }
-
- public void tearDown() throws Exception {
- }
-}
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package org.apache.tika.parser.chm;
+
+import junit.framework.Assert;
+import junit.framework.TestCase;
+
+import org.apache.tika.parser.chm.accessor.ChmPmglHeader;
+import org.apache.tika.parser.chm.core.ChmCommons;
+import org.apache.tika.parser.chm.core.ChmConstants;
+
+public class TestPmglHeader extends TestCase {
+ ChmPmglHeader chmPmglHeader = null;
+
+ public void setUp() throws Exception {
+ byte[] data = TestParameters.chmData;
+ chmPmglHeader = new ChmPmglHeader();
+ chmPmglHeader.parse(ChmCommons.copyOfRange(data,
+ ChmConstants.START_PMGL, ChmConstants.START_PMGL
+ + ChmConstants.CHM_PMGL_LEN + 10), chmPmglHeader);
+ }
+
+ public void testToString() {
+ Assert.assertTrue((chmPmglHeader != null)
+ && chmPmglHeader.toString().length() > 0);
+ }
+
+ public void testChmPmglHeaderGet() {
+ Assert.assertEquals(TestParameters.VP_PMGL_SIGNATURE, new String(
+ chmPmglHeader.getSignature()));
+ }
+
+ public void testGetBlockNext() {
+ Assert.assertEquals(TestParameters.VP_PMGL_BLOCK_NEXT,
+ chmPmglHeader.getBlockNext());
+ }
+
+ public void testGetBlockPrev() {
+ Assert.assertEquals(TestParameters.VP_PMGL_BLOCK_PREV,
+ chmPmglHeader.getBlockPrev());
+ }
+
+ public void testGetFreeSpace() {
+ Assert.assertEquals(TestParameters.VP_PMGL_FREE_SPACE,
+ chmPmglHeader.getFreeSpace());
+ }
+
+ public void testGetUnknown0008() {
+ Assert.assertEquals(TestParameters.VP_PMGL_UNKNOWN_008,
+ chmPmglHeader.getUnknown0008());
+ }
+
+ public void tearDown() throws Exception {
+ }
+}
Propchange: tika/trunk/tika-parsers/src/test/java/org/apache/tika/parser/chm/TestPmglHeader.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: tika/trunk/tika-parsers/src/test/java/org/apache/tika/parser/epub/EpubParserTest.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: tika/trunk/tika-parsers/src/test/java/org/apache/tika/parser/image/ImageMetadataExtractorTest.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: tika/trunk/tika-parsers/src/test/java/org/apache/tika/parser/image/MetadataFieldsTest.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: tika/trunk/tika-parsers/src/test/java/org/apache/tika/parser/image/xmp/JempboxExtractorTest.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: tika/trunk/tika-parsers/src/test/java/org/apache/tika/parser/mbox/MboxParserTest.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: tika/trunk/tika-parsers/src/test/java/org/apache/tika/parser/microsoft/AbstractPOIContainerExtractionTest.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: tika/trunk/tika-parsers/src/test/java/org/apache/tika/parser/microsoft/POIContainerExtractionTest.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: tika/trunk/tika-parsers/src/test/java/org/apache/tika/parser/microsoft/PublisherParserTest.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: tika/trunk/tika-parsers/src/test/java/org/apache/tika/parser/microsoft/TNEFParserTest.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: tika/trunk/tika-parsers/src/test/java/org/apache/tika/parser/microsoft/VisioParserTest.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: tika/trunk/tika-parsers/src/test/java/org/apache/tika/parser/microsoft/WriteProtectedParserTest.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: tika/trunk/tika-parsers/src/test/java/org/apache/tika/parser/microsoft/ooxml/OOXMLContainerExtractionTest.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: tika/trunk/tika-parsers/src/test/java/org/apache/tika/parser/odf/ODFParserTest.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: tika/trunk/tika-parsers/src/test/java/org/apache/tika/parser/pdf/PDFParserTest.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: tika/trunk/tika-parsers/src/test/java/org/apache/tika/parser/pkg/AbstractPkgTest.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: tika/trunk/tika-parsers/src/test/java/org/apache/tika/parser/prt/PRTParserTest.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: tika/trunk/tika-parsers/src/test/java/org/apache/tika/parser/rtf/RTFParserTest.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: tika/trunk/tika-parsers/src/test/java/org/apache/tika/parser/video/FLVParserTest.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: tika/trunk/tika-parsers/src/test/java/org/apache/tika/parser/xml/FictionBookParserTest.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: tika/trunk/tika-server/src/main/java/org/apache/tika/server/MetadataResource.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: tika/trunk/tika-server/src/main/java/org/apache/tika/server/PartExtractor.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: tika/trunk/tika-server/src/main/java/org/apache/tika/server/TikaExceptionMapper.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: tika/trunk/tika-server/src/main/java/org/apache/tika/server/TikaResource.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: tika/trunk/tika-server/src/main/java/org/apache/tika/server/TikaServerCli.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: tika/trunk/tika-server/src/main/java/org/apache/tika/server/UnpackerResource.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: tika/trunk/tika-server/src/main/java/org/apache/tika/server/ZipOutput.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: tika/trunk/tika-server/src/main/java/org/apache/tika/server/ZipUtils.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: tika/trunk/tika-server/src/main/resources/commons-logging.properties
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: tika/trunk/tika-server/src/main/resources/tikaserver-version.properties
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: tika/trunk/tika-server/src/test/java/org/apache/tika/server/MetadataResourceTest.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: tika/trunk/tika-server/src/test/java/org/apache/tika/server/TikaResourceTest.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: tika/trunk/tika-server/src/test/java/org/apache/tika/server/UnpackerResourceTest.java
------------------------------------------------------------------------------
svn:eol-style = native