vgritsenko 2004/08/27 09:09:35
Modified: java/tests/src/org/apache/xindice/integration/client/basic DocumentTest.java Log: formatting Revision Changes Path 1.13 +9 -12 xml-xindice/java/tests/src/org/apache/xindice/integration/client/basic/DocumentTest.java Index: DocumentTest.java =================================================================== RCS file: /home/cvs/xml-xindice/java/tests/src/org/apache/xindice/integration/client/basic/DocumentTest.java,v retrieving revision 1.12 retrieving revision 1.13 diff -u -r1.12 -r1.13 --- DocumentTest.java 30 Mar 2004 15:33:52 -0000 1.12 +++ DocumentTest.java 27 Aug 2004 16:09:35 -0000 1.13 @@ -295,8 +295,8 @@ assertEquals(0, this.client.countDocument(TEST_COLLECTION_PATH)); } - private String fetchTestDocument(String name) throws IOException, SAXException, ParserConfigurationException - { + private String fetchTestDocument(String name) + throws IOException, SAXException, ParserConfigurationException { final StringWriter out = new StringWriter(); final ContentHandler serializer = createSerializer(out); @@ -305,8 +305,8 @@ return out.toString(); } - private void parseTestDocument(String name, ContentHandler handler) throws IOException, SAXException, ParserConfigurationException - { + private void parseTestDocument(String name, ContentHandler handler) + throws IOException, SAXException, ParserConfigurationException { InputStream in = getClass().getResourceAsStream("testdocs/" + name); if (null == in) { @@ -322,12 +322,9 @@ saxReader.parse(new InputSource(in)); } - private ContentHandler createSerializer(final Writer out) - { - final ContentHandler serializer = new StringSerializer() - { - public void endDocument() throws SAXException - { + private ContentHandler createSerializer(final Writer out) { + final ContentHandler serializer = new StringSerializer() { + public void endDocument() throws SAXException { super.endDocument(); try {