epugh       2004/08/13 05:59:46

  Modified:    security/nt/src/test/org/apache/fulcrum/security/nt/dynamic
                        NTUserManagerTest.java
  Log:
  missing unit test needs overriding.  Should rethink how NT testing works!
  
  Revision  Changes    Path
  1.7       +14 -1     
jakarta-turbine-fulcrum/security/nt/src/test/org/apache/fulcrum/security/nt/dynamic/NTUserManagerTest.java
  
  Index: NTUserManagerTest.java
  ===================================================================
  RCS file: 
/home/cvs/jakarta-turbine-fulcrum/security/nt/src/test/org/apache/fulcrum/security/nt/dynamic/NTUserManagerTest.java,v
  retrieving revision 1.6
  retrieving revision 1.7
  diff -u -r1.6 -r1.7
  --- NTUserManagerTest.java    7 Jul 2004 17:31:54 -0000       1.6
  +++ NTUserManagerTest.java    13 Aug 2004 12:59:46 -0000      1.7
  @@ -232,6 +232,19 @@
               assertTrue(re.getMessage().equals(ERROR_MSG));
           }
       }
  +    
  +    public void testGetUserById() throws Exception
  +    {
  +        try
  +        {
  +            userManager.getUserById(null);
  +            fail("Should throw runtime exception");
  +        }
  +        catch (RuntimeException re)
  +        {
  +            assertTrue(re.getMessage().equals(ERROR_MSG));
  +        }
  +    }    
       public void testChangePassword() throws Exception
       {
                user = userManager.getUser(GUESTUSER, "");
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to