org.sourceforge.jemm.comm.shared
Class IFUtilitiesTest

java.lang.Object
  extended by org.sourceforge.jemm.comm.shared.IFUtilitiesTest

public class IFUtilitiesTest
extends java.lang.Object

Unit Tests for IFUtilities class.

Author:
Rory Graves

Nested Class Summary
protected static interface IFUtilitiesTest.ValidVoidMethodsInterface
          Valid void method definitions.
 
Constructor Summary
IFUtilitiesTest()
           
 
Method Summary
 void basicValidInterface()
          Test a valid simple interface.
 void illegalAsynchronousMethod()
          Test that non-void methods do not implement SynchronousCall
 void illegalSubInterface()
          Test that sub-interfaces throw an exception.
 void illegalSynchronousMethod()
          Test that non-void methods do not implement SynchronousCall
 void illegalUnannotatedVoidMethod()
          Test that a void method that does not implement either SynchronousCall or AsynchronousCall.
 void notAnIntefaceError()
          Test case for being passed non-interface class.
 void validVoidMethods()
          Tests that correctly annotated void methods are accepted.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IFUtilitiesTest

public IFUtilitiesTest()
Method Detail

notAnIntefaceError

public void notAnIntefaceError()
Test case for being passed non-interface class.


basicValidInterface

public void basicValidInterface()
Test a valid simple interface.


illegalSubInterface

public void illegalSubInterface()
Test that sub-interfaces throw an exception.


illegalSynchronousMethod

public void illegalSynchronousMethod()
Test that non-void methods do not implement SynchronousCall


illegalAsynchronousMethod

public void illegalAsynchronousMethod()
Test that non-void methods do not implement SynchronousCall


illegalUnannotatedVoidMethod

public void illegalUnannotatedVoidMethod()
Test that a void method that does not implement either SynchronousCall or AsynchronousCall.


validVoidMethods

public void validVoidMethods()
Tests that correctly annotated void methods are accepted.



Copyright © 2009. All Rights Reserved.