Code example for IdentityScope

Methods: addIdentity, size

0
        super(arg0);
    } 
 
    /** 
     * verify SystemScope.size() returns number of Identities 
     */ 
     
    public void testSize() throws Exception { 
        //SystemScope ss = new SystemScope("SystemScope"); 
        assertEquals(0, ss.size());
        ss.addIdentity(new IdentityScopeStub("aaa"));
        assertEquals(1, ss.size());
        ss.addIdentity(new IdentityScopeStub("bbb"));
        assertEquals(2, ss.size());
    } 
 
    /* 
     * verify  getIdentity(String) returns requested identity or null if not found 
     */ 
    public void testGetIdentityString() throws Exception { 
        //SystemScope ss = new SystemScope("SystemScope");