summaryrefslogtreecommitdiff
path: root/filter/qa
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2015-10-16 10:55:02 +0200
committerNoel Grandin <noel@peralex.com>2015-10-16 10:56:05 +0200
commit14bf708ef586b15dffed66ffaf524baf4d8fcbfa (patch)
tree5873a9a3fd7bf6189c3f1fb4aba3916884738de2 /filter/qa
parenta3a89c15230317710ba32753c0eafdb4733730ef (diff)
convert "continue" flag to an enum
Change-Id: I160de1152978f301c514d9107c9e9082bab3cf05
Diffstat (limited to 'filter/qa')
-rw-r--r--filter/qa/complex/filter/detection/typeDetection/TypeDetection.java34
1 files changed, 17 insertions, 17 deletions
diff --git a/filter/qa/complex/filter/detection/typeDetection/TypeDetection.java b/filter/qa/complex/filter/detection/typeDetection/TypeDetection.java
index 5c87c22b8f6c..e39e2bfca111 100644
--- a/filter/qa/complex/filter/detection/typeDetection/TypeDetection.java
+++ b/filter/qa/complex/filter/detection/typeDetection/TypeDetection.java
@@ -270,7 +270,7 @@ public class TypeDetection extends ComplexTestCase {
}
} catch (ClassCastException e){
- failed(e.toString(), true);
+ failed(e.toString(), ContinueWithTest.YES);
}
}
@@ -296,7 +296,7 @@ public class TypeDetection extends ComplexTestCase {
boolean fileTypeOK = helper.checkFileType(type, fileType);
assure("\nURL-test : " + fileAlias + ":\n\treturned type: '" + type +
- "'\n\texpected type: '" + fileType + "'",fileTypeOK ,true);
+ "'\n\texpected type: '" + fileType + "'",fileTypeOK ,ContinueWithTest.YES);
}
/** Filles a MediaDescriptor with a <code>XInputStream</code> of the test
@@ -317,7 +317,7 @@ public class TypeDetection extends ComplexTestCase {
try{
xStream = helper.getFileStream( fileURL );
} catch (NotConnectedException e) {
- failed("Could not get XInputStream from file :'" + fileURL + "'",true);
+ failed("Could not get XInputStream from file :'" + fileURL + "'",ContinueWithTest.YES);
return;
}
@@ -332,7 +332,7 @@ public class TypeDetection extends ComplexTestCase {
boolean fileTypeOK = helper.checkFileType(type, fileType);
assure("\nXInputStream-test: " + fileAlias + ":\n\treturned type: '" + type +
- "'\n\texpected type: '" + fileType + "'", fileTypeOK, true);
+ "'\n\texpected type: '" + fileType + "'", fileTypeOK, ContinueWithTest.YES);
}
@@ -375,16 +375,16 @@ public class TypeDetection extends ComplexTestCase {
assure("\n" + fileAlias + ":\n\treturned type: '" + type +
"'\n\texpected type: '" + expectedFileType + "'",
- fileTypeOK, true);
+ fileTypeOK, ContinueWithTest.YES);
} catch (FileAliasNotFoundException e){
- failed(e.toString(),true);
+ failed(e.toString(),ContinueWithTest.YES);
}
}
} catch (ClassCastException e){
- failed(e.toString(), true);
+ failed(e.toString(), ContinueWithTest.YES);
}
}
@@ -429,16 +429,16 @@ public class TypeDetection extends ComplexTestCase {
assure("\n" + fileAlias + ":\n\treturned type: '" + type +
"'\n\texpected type: '" + expectedType + "'",
- fileTypeOK,true);
+ fileTypeOK,ContinueWithTest.YES);
} catch (FileAliasNotFoundException e){
- failed(e.toString(),true);
+ failed(e.toString(),ContinueWithTest.YES);
}
}
} catch (ClassCastException e){
- failed(e.toString(), true);
+ failed(e.toString(), ContinueWithTest.YES);
}
}
@@ -474,16 +474,16 @@ public class TypeDetection extends ComplexTestCase {
assure("\n" + fileAlias + ":\n\treturned type: '" + type +
"'\t\nexpected type: '" + fileType + "'",
- fileTypeOK, true);
+ fileTypeOK, ContinueWithTest.YES);
} catch (FileAliasNotFoundException e){
- failed(e.toString(),true);
+ failed(e.toString(),ContinueWithTest.YES);
}
}
} catch (ClassCastException e){
- failed(e.toString(), true);
+ failed(e.toString(), ContinueWithTest.YES);
}
}
@@ -531,15 +531,15 @@ public class TypeDetection extends ComplexTestCase {
}
if (file.canWrite() && bReadOnly)
- assure("\nStreamLoader: file '"+ fileURL +"' is writable but out-Parameter does contain 'ReadOnly' property",false ,true);
+ assure("\nStreamLoader: file '"+ fileURL +"' is writable but out-Parameter does contain 'ReadOnly' property", false, ContinueWithTest.YES);
else if ((!file.canWrite()) && (!bReadOnly))
- assure("\nStreamLoader: file '"+ fileURL +"'is readonly but out-Parameter does not contain 'ReadOnly' property",false ,true);
- else assure("all ok",true,true);
+ assure("\nStreamLoader: file '"+ fileURL +"'is readonly but out-Parameter does not contain 'ReadOnly' property", false, ContinueWithTest.YES);
+ else assure("all ok", true, ContinueWithTest.YES);
}
} catch (ClassCastException e){
- failed(e.toString(), true);
+ failed(e.toString(), ContinueWithTest.YES);
}
}