Commit 06927e5e authored by Lionel Seinturier's avatar Lionel Seinturier
Browse files

Additional tests.

parent e2e26ea5
......@@ -161,8 +161,16 @@ public class SCAContentControllerTestCase {
Assert.fail(msg);
}
catch( ContentInstantiationException cie ) {}
try {
scacc.setFcContentClass(EmptyClass.class);
String msg = "Class must implement server interfaces";
Assert.fail(msg);
}
catch( ContentInstantiationException cie ) {}
}
private static class EmptyClass {}
/**
* @since 1.4.3
*/
......@@ -267,5 +275,11 @@ public class SCAContentControllerTestCase {
Assert.fail(msg);
}
catch( ContentInstantiationException cie ) {}
try {
scacc.setFcContent(new EmptyClass());
String msg = "Object must implement services";
Assert.fail(msg);
}
catch( ContentInstantiationException cie ) {}
}
}
......@@ -161,8 +161,16 @@ public class SCAContentControllerTestCase {
Assert.fail(msg);
}
catch( ContentInstantiationException cie ) {}
try {
scacc.setFcContentClass(EmptyClass.class);
String msg = "Class must implement server interfaces";
Assert.fail(msg);
}
catch( ContentInstantiationException cie ) {}
}
private static class EmptyClass {}
/**
* @since 1.4.3
*/
......@@ -267,5 +275,11 @@ public class SCAContentControllerTestCase {
Assert.fail(msg);
}
catch( ContentInstantiationException cie ) {}
try {
scacc.setFcContent(new EmptyClass());
String msg = "Object must implement services";
Assert.fail(msg);
}
catch( ContentInstantiationException cie ) {}
}
}
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