@ -46,10 +46,6 @@ public class NamedEntityObjectIdentity implements AclObjectIdentity {
@@ -46,10 +46,6 @@ public class NamedEntityObjectIdentity implements AclObjectIdentity {
this.id=id;
}
protectedNamedEntityObjectIdentity(){
thrownewIllegalArgumentException("Cannot use default constructor");
@ -45,10 +45,6 @@ public class PrincipalAcegiUserToken extends AbstractAdapterAuthenticationToken
@@ -45,10 +45,6 @@ public class PrincipalAcegiUserToken extends AbstractAdapterAuthenticationToken
this.principal=principal;
}
protectedPrincipalAcegiUserToken(){
thrownewIllegalArgumentException("Cannot use default constructor");
@ -75,11 +75,13 @@ public class NamedEntityObjectIdentityTests extends TestCase {
@@ -75,11 +75,13 @@ public class NamedEntityObjectIdentityTests extends TestCase {
}
}
publicvoidtestDefaultConstructorRejected(){
publicvoidtestNoArgConstructorDoesntExist(){
Classclazz=NamedEntityObjectIdentity.class;
try{
newNamedEntityObjectIdentity();
fail("Should have thrown IllegalArgumentException");
@ -71,15 +71,6 @@ public class AbstractAdapterAuthenticationTokenTests extends TestCase {
@@ -71,15 +71,6 @@ public class AbstractAdapterAuthenticationTokenTests extends TestCase {
assertTrue(!token.isUserInRole("ROLE_XXXX"));
}
publicvoidtestNoArgsConstructor(){
try{
newMockDecisionManagerImpl();
fail("Should have thrown IllegalArgumentException");
@ -148,10 +139,6 @@ public class AbstractAdapterAuthenticationTokenTests extends TestCase {
@@ -148,10 +139,6 @@ public class AbstractAdapterAuthenticationTokenTests extends TestCase {
@ -59,12 +59,14 @@ public class PrincipalAcegiUserTokenTests extends TestCase {
@@ -59,12 +59,14 @@ public class PrincipalAcegiUserTokenTests extends TestCase {
assertEquals("Test",token.getName());
}
publicvoidtestNoArgsConstructor(){
publicvoidtestNoArgConstructorDoesntExist(){
Classclazz=PrincipalAcegiUserToken.class;
try{
newPrincipalAcegiUserToken();
fail("Should have thrown IllegalArgumentException");
@ -48,11 +48,13 @@ public class InterceptorStatusTokenTests extends TestCase {
@@ -48,11 +48,13 @@ public class InterceptorStatusTokenTests extends TestCase {
@ -154,11 +154,13 @@ public class FilterInvocationDefinitionSourceEditorTests extends TestCase {
@@ -154,11 +154,13 @@ public class FilterInvocationDefinitionSourceEditorTests extends TestCase {
@ -135,11 +135,13 @@ public class FilterInvocationDefinitionSourceEditorWithPathsTests
@@ -135,11 +135,13 @@ public class FilterInvocationDefinitionSourceEditorWithPathsTests
@ -77,11 +77,13 @@ public class FilterInvocationTests extends MockObjectTestCase {
@@ -77,11 +77,13 @@ public class FilterInvocationTests extends MockObjectTestCase {
fi.getFullRequestUrl());
}
publicvoidtestNoArgsConstructor(){
publicvoidtestNoArgConstructorDoesntExist(){
Classclazz=FilterInvocation.class;
try{
newFilterInvocation();
fail("Should have thrown IllegalArgumentException");