mirror of
https://github.com/spring-projects/spring-security.git
synced 2025-07-07 19:22:14 +00:00
Fixing unit test issues
This commit is contained in:
parent
d88adf3f9e
commit
73cea493c6
@ -49,6 +49,12 @@
|
|||||||
<version>1.2.6</version>
|
<version>1.2.6</version>
|
||||||
<type>jar</type>
|
<type>jar</type>
|
||||||
</dependency>
|
</dependency>
|
||||||
|
<dependency>
|
||||||
|
<groupId>hsqldb</groupId>
|
||||||
|
<artifactId>hsqldb</artifactId>
|
||||||
|
<version>1.8.0.4</version>
|
||||||
|
<scope>test</scope>
|
||||||
|
</dependency>
|
||||||
</dependencies>
|
</dependencies>
|
||||||
<build>
|
<build>
|
||||||
<plugins>
|
<plugins>
|
||||||
@ -56,8 +62,8 @@
|
|||||||
<groupId>org.apache.maven.plugins</groupId>
|
<groupId>org.apache.maven.plugins</groupId>
|
||||||
<artifactId>maven-compiler-plugin</artifactId>
|
<artifactId>maven-compiler-plugin</artifactId>
|
||||||
<configuration>
|
<configuration>
|
||||||
<source>1.5</source>
|
<source>1.4</source>
|
||||||
<target>1.5</target>
|
<target>1.4</target>
|
||||||
</configuration>
|
</configuration>
|
||||||
</plugin>
|
</plugin>
|
||||||
</plugins>
|
</plugins>
|
||||||
|
@ -456,7 +456,7 @@ public class AclImpl implements Acl, MutableAcl, AuditableAcl, OwnershipAcl {
|
|||||||
}
|
}
|
||||||
|
|
||||||
sb.append("inheriting: ").append(this.entriesInheriting).append("; ");
|
sb.append("inheriting: ").append(this.entriesInheriting).append("; ");
|
||||||
sb.append("parent: ").append((this.parentAcl == null) ? "Null" : this.parentAcl.getObjectIdentity());
|
sb.append("parent: ").append((this.parentAcl == null) ? "Null" : this.parentAcl.getObjectIdentity().toString());
|
||||||
sb.append("]");
|
sb.append("]");
|
||||||
|
|
||||||
return sb.toString();
|
return sb.toString();
|
||||||
|
@ -47,12 +47,12 @@ public class JdbcAclServiceTests extends AbstractDependencyInjectionSpringContex
|
|||||||
}
|
}
|
||||||
|
|
||||||
public void testStub() {
|
public void testStub() {
|
||||||
ObjectIdentity id1 = new ObjectIdentityImpl("sample.contact.Contact", new Long(1));
|
ObjectIdentity id1 = new ObjectIdentityImpl("java.lang.Object", new Long(1));
|
||||||
ObjectIdentity id2 = new ObjectIdentityImpl("sample.contact.Contact", new Long(2));
|
ObjectIdentity id2 = new ObjectIdentityImpl("java.lang.Object", new Long(2));
|
||||||
ObjectIdentity id3 = new ObjectIdentityImpl("sample.contact.Contact", new Long(3));
|
ObjectIdentity id3 = new ObjectIdentityImpl("java.lang.Object", new Long(3));
|
||||||
ObjectIdentity id4 = new ObjectIdentityImpl("sample.contact.Contact", new Long(4));
|
ObjectIdentity id4 = new ObjectIdentityImpl("java.lang.Object", new Long(4));
|
||||||
ObjectIdentity id5 = new ObjectIdentityImpl("sample.contact.Contact", new Long(5));
|
ObjectIdentity id5 = new ObjectIdentityImpl("java.lang.Object", new Long(5));
|
||||||
ObjectIdentity id6 = new ObjectIdentityImpl("sample.contact.Contact", new Long(6));
|
ObjectIdentity id6 = new ObjectIdentityImpl("java.lang.Object", new Long(6));
|
||||||
Map map = jdbcAclService.readAclsById(new ObjectIdentity[] {id1, id2, id3, id4, id5, id6});
|
Map map = jdbcAclService.readAclsById(new ObjectIdentity[] {id1, id2, id3, id4, id5, id6});
|
||||||
Iterator iterator = map.keySet().iterator();
|
Iterator iterator = map.keySet().iterator();
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user