org.jitr
Class JitrUtilsTest

java.lang.Object
  extended by org.jitr.JitrUtilsTest

public class JitrUtilsTest
extends java.lang.Object


Constructor Summary
JitrUtilsTest()
           
 
Method Summary
 void testGetAnnotatedDeclaredFields_AnnotationClassNull()
           
 void testGetAnnotatedDeclaredFields_ClassNull()
           
 void testGetAnnotatedDeclaredFields()
           
 void testGetMostSpecificAnnotatedDeclaredFields_Multiple()
           
 void testGetMostSpecificAnnotatedDeclaredFields()
           
 void testGetRandomUnusedPort()
          Very difficult to test, so try opening a default port, then a few calls.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JitrUtilsTest

public JitrUtilsTest()
Method Detail

testGetAnnotatedDeclaredFields

public void testGetAnnotatedDeclaredFields()

testGetAnnotatedDeclaredFields_AnnotationClassNull

public void testGetAnnotatedDeclaredFields_AnnotationClassNull()

testGetAnnotatedDeclaredFields_ClassNull

public void testGetAnnotatedDeclaredFields_ClassNull()

testGetMostSpecificAnnotatedDeclaredFields

public void testGetMostSpecificAnnotatedDeclaredFields()
                                                throws java.lang.Exception
Throws:
java.lang.Exception

testGetMostSpecificAnnotatedDeclaredFields_Multiple

public void testGetMostSpecificAnnotatedDeclaredFields_Multiple()
                                                         throws java.lang.Exception
Throws:
java.lang.Exception

testGetRandomUnusedPort

public void testGetRandomUnusedPort()
                             throws java.lang.Exception
Very difficult to test, so try opening a default port, then a few calls. Obviously this does not test all branches since to do this we would need to cause exceptions opening or closing the socket.

Throws:
java.lang.Exception


Copyright © 2009. All Rights Reserved.