Author: rdonkin
Date: Mon Dec 9 05:46:38 2013
New Revision: 1549420
URL: http://svn.apache.org/r1549420
Log:
Change Test Method.
Modified:
creadur/rat/branches/gsoc/apache-rat-core/src/test/java/org/apache/rat/document/impl/guesser/BinaryGuesserTest.java
Modified:
creadur/rat/branches/gsoc/apache-rat-core/src/test/java/org/apache/rat/document/impl/guesser/BinaryGuesserTest.java
URL:
http://svn.apache.org/viewvc/creadur/rat/branches/gsoc/apache-rat-core/src/test/java/org/apache/rat/document/impl/guesser/BinaryGuesserTest.java?rev=1549420&r1=1549419&r2=1549420&view=diff
==============================================================================
---
creadur/rat/branches/gsoc/apache-rat-core/src/test/java/org/apache/rat/document/impl/guesser/BinaryGuesserTest.java
(original)
+++
creadur/rat/branches/gsoc/apache-rat-core/src/test/java/org/apache/rat/document/impl/guesser/BinaryGuesserTest.java
Mon Dec 9 05:46:38 2013
@@ -39,7 +39,7 @@ public class BinaryGuesserTest {
* Test matches.
*/
@Test
- public void testMatches() {
+ public void testBinaryGuesserMatches() {
assertThatDocumentIsBinary("image.png");
assertThatDocumentIsBinary("libicudata.so.34.");
}
@@ -65,7 +65,7 @@ public class BinaryGuesserTest {
* @see "RAT-81"
*/
@Test
- public void binaryWithMalformedInputRAT81() throws Throwable {
+ public void testBinaryWithMalformedInputRAT81() throws Throwable {
Document doc = new FileDocument(new File(
"src/test/resources/binaries/UTF16_with_signature.xml"));
Reader reader = null;
@@ -94,7 +94,7 @@ public class BinaryGuesserTest {
* Real binary content.
*/
@Test
- public void realBinaryContent() {
+ public void testRealBinaryContent() {
// This test is not accurate on all platforms
if (System.getProperty("file.encoding").startsWith("ANSI")) {
assertTrue("Value return must be True",
@@ -107,7 +107,7 @@ public class BinaryGuesserTest {
* Textual content.
*/
@Test
- public void textualContent() {
+ public void testTextualContent() {
assertFalse("Value return must be False",
new BinaryGuesser().matches(new
FileDocument(new File(
"src/test/resources/elements/Text.txt"))));
@@ -117,7 +117,7 @@ public class BinaryGuesserTest {
* Empty file.
*/
@Test
- public void emptyFile() {
+ public void testEmptyFile() {
assertFalse("Value return must be False",
new BinaryGuesser().matches(new
FileDocument(new File(
"src/test/resources/elements/sub/Empty.txt"))));