Commit 12c352dd authored by Christopher Jan-Steffen Brix's avatar Christopher Jan-Steffen Brix
Browse files

Adapted tests

parent e1ae811a
Pipeline #104080 failed with stages
in 41 seconds
......@@ -361,8 +361,6 @@ public class EMADLGenerator {
if (architecture.isPresent()){
System.out.println(getModelsPath() + "data_paths.txt");
System.out.println("Lookign for key " + componentSymbol.getFullName());
DataPathConfigParser newParserConfig = new DataPathConfigParser(getModelsPath() + "data_paths.txt");
String dPath = newParserConfig.getDataPath(componentSymbol.getFullName());
......@@ -33,9 +33,6 @@ import java.nio.file.Paths;
import java.util.Arrays;
import static junit.framework.TestCase.assertTrue;
import static org.junit.Assert.assertEquals;
import static org.junit.Assume.assumeFalse;
import static org.junit.Assume.assumeTrue;
public class GenerationTest extends AbstractSymtabTest {
......@@ -131,18 +128,14 @@ public class GenerationTest extends AbstractSymtabTest {
//Test hash-function
public void testHashFunction() throws IOException, TemplateException {
//EMADLGenerator is tested
public void testHashFunction() {
EMADLGenerator tester = new EMADLGenerator(Backend.MXNET);
//assert statements
tester.getChecksumForFile("invalid Path!");
assumeFalse("Exception in getChecksum is not correct", false);
}catch(IOException e){
assumeTrue("Exception in getChecksum is correct", true);
assertTrue("Hash method should throw IOException on invalid path", false);
} catch(IOException e){
cifar10.CifarNetwork data/cifar10_cifar10Classifier_net
\ No newline at end of file
cifar10.CifarNetwork data/cifar10_cifar10Classifier_net
MultipleOutputs data/MultipleOutputs
InstanceTest.NetworkB data/InstanceTest.NetworkB
Alexnet data/Alexnet
ThreeInputCNN_M14 data/ThreeInputCNN_M14
VGG16 data/VGG16
ResNeXt50 data/ResNeXt50
\ No newline at end of file
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment