incubator-odf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From fh...@apache.org
Subject svn commit: r1418211 - /incubator/odf/trunk/simple/src/test/java/org/odftoolkit/simple/meta/MetaDocumentStatisticTest.java
Date Fri, 07 Dec 2012 08:17:38 GMT
Author: fhopf
Date: Fri Dec  7 08:17:37 2012
New Revision: 1418211

URL: http://svn.apache.org/viewvc?rev=1418211&view=rev
Log:
fix for ODFTOOLKIT-342 don't depend on ordering of methods in the source code

Modified:
    incubator/odf/trunk/simple/src/test/java/org/odftoolkit/simple/meta/MetaDocumentStatisticTest.java

Modified: incubator/odf/trunk/simple/src/test/java/org/odftoolkit/simple/meta/MetaDocumentStatisticTest.java
URL: http://svn.apache.org/viewvc/incubator/odf/trunk/simple/src/test/java/org/odftoolkit/simple/meta/MetaDocumentStatisticTest.java?rev=1418211&r1=1418210&r2=1418211&view=diff
==============================================================================
--- incubator/odf/trunk/simple/src/test/java/org/odftoolkit/simple/meta/MetaDocumentStatisticTest.java
(original)
+++ incubator/odf/trunk/simple/src/test/java/org/odftoolkit/simple/meta/MetaDocumentStatisticTest.java
Fri Dec  7 08:17:37 2012
@@ -68,162 +68,94 @@ public class MetaDocumentStatisticTest {
 
 	}
 
-	@After
-	public void tearDown() throws Exception {
-		if (doc!=null)
-			doc.save(ResourceUtilities.getAbsolutePath(filename));
-		doc = null;
-		metadom = null;
-	}
-
-	@Test
-	public void testSetCellCount() {
-		stat.setCellCount(cellCount);
-	}
-
 	@Test
 	public void testGetCellCount() {
+		stat.setCellCount(cellCount);
 		Assert.assertEquals(cellCount, stat.getCellCount());
 	}
 
 	@Test
-	public void testSetCharacterCount() {
-		stat.setCharacterCount(characterCount);
-	}
-
-	@Test
 	public void testGetCharacterCount() {
+		stat.setCharacterCount(characterCount);
 		Assert.assertEquals(characterCount, stat.getCharacterCount());
 	}
 
 	@Test
-	public void testSetDrawCount() {
-		stat.setDrawCount(drawCount);
-	}
-
-	@Test
 	public void testGetDrawCount() {
+		stat.setDrawCount(drawCount);
 		Assert.assertEquals(drawCount, stat.getDrawCount());
 	}
 
 	@Test
-	public void testSetFrameCount() {
-		stat.setFrameCount(frameCount);
-	}
-
-	@Test
 	public void testGetFrameCount() {
+		stat.setFrameCount(frameCount);
 		Assert.assertEquals(frameCount, stat.getFrameCount());
 	}
 
 	@Test
-	public void testSetImageCount() {
-		stat.setImageCount(imageCount);
-	}
-
-	@Test
 	public void testGetImageCount() {
+		stat.setImageCount(imageCount);
 		Assert.assertEquals(imageCount, stat.getImageCount());
 	}
 
 	@Test
-	public void testSetNonWhitespaceCharacterCount() {
-		stat.setNonWhitespaceCharacterCount(nonWhitespaceCharacterCount);
-	}
-
-	@Test
 	public void testGetNonWhitespaceCharacterCount() {
+		stat.setNonWhitespaceCharacterCount(nonWhitespaceCharacterCount);
 		Assert.assertEquals(nonWhitespaceCharacterCount, stat
 				.getNonWhitespaceCharacterCount());
 	}
 
 	@Test
-	public void testSetObjectCount() {
-		stat.setObjectCount(objectCount);
-	}
-
-	@Test
 	public void testGetObjectCount() {
+		stat.setObjectCount(objectCount);
 		Assert.assertEquals(objectCount, stat.getObjectCount());
 	}
 
 	@Test
-	public void testSetOleObjectCount() {
-		stat.setOleObjectCount(oleObjectCount);
-	}
-
-	@Test
 	public void testGetOleObjectCount() {
+		stat.setOleObjectCount(oleObjectCount);
 		Assert.assertEquals(oleObjectCount, stat.getOleObjectCount());
 	}
 
 	@Test
-	public void testSetPageCount() {
-		stat.setPageCount(pageCount);
-	}
-
-	@Test
 	public void testGetPageCount() {
+		stat.setPageCount(pageCount);
 		Assert.assertEquals(pageCount, stat.getPageCount());
 	}
 
 	@Test
-	public void testSetParagraphCount() {
-		stat.setParagraphCount(paragraphCount);
-	}
-
-	@Test
 	public void testGetParagraphCount() {
+		stat.setParagraphCount(paragraphCount);
 		Assert.assertEquals(paragraphCount, stat.getParagraphCount());
 	}
 
 	@Test
-	public void testSetRowCount() {
-		stat.setRowCount(rowCount);
-	}
-
-	@Test
 	public void testGetRowCount() {
+		stat.setRowCount(rowCount);
 		Assert.assertEquals(rowCount, stat.getRowCount());
 	}
 
 	@Test
-	public void testSetSentenceCount() {
-		stat.setSentenceCount(sentenceCount);
-	}
-
-	@Test
 	public void testGetSentenceCount() {
+		stat.setSentenceCount(sentenceCount);
 		Assert.assertEquals(sentenceCount, stat.getSentenceCount());
 	}
 
 	@Test
-	public void testSetSyllableCount() {
-		stat.setSyllableCount(syllableCount);
-	}
-
-	@Test
 	public void testGetSyllableCount() {
+		stat.setSyllableCount(syllableCount);
 		Assert.assertEquals(syllableCount, stat.getSyllableCount());
 	}
 
 	@Test
-	public void testSetTableCount() {
-		stat.setTableCount(tableCount);
-	}
-
-	@Test
 	public void testGetTableCount() {
+		stat.setTableCount(tableCount);
 		Assert.assertEquals(tableCount, stat.getTableCount());
 	}
 
 	@Test
-	public void testSetWordCount() {
-		stat.setWordCount(wordCount);
-	}
-
-	@Test
 	public void testGetWordCount() {
+		stat.setWordCount(wordCount);
 		Assert.assertEquals(wordCount, stat.getWordCount());
 	}
 



Mime
View raw message