edu.rice.cs.javalanglevels
Class ConstructorBodyTypeChecker.ConstructorBodyTypeCheckerTest

java.lang.Object
  extended by junit.framework.Assert
      extended by junit.framework.TestCase
          extended by edu.rice.cs.javalanglevels.ConstructorBodyTypeChecker.ConstructorBodyTypeCheckerTest
All Implemented Interfaces:
Test
Enclosing class:
ConstructorBodyTypeChecker

public static class ConstructorBodyTypeChecker.ConstructorBodyTypeCheckerTest
extends TestCase

Tests the methods in the above class.


Constructor Summary
ConstructorBodyTypeChecker.ConstructorBodyTypeCheckerTest()
           
ConstructorBodyTypeChecker.ConstructorBodyTypeCheckerTest(java.lang.String name)
           
 
Method Summary
 void setUp()
           
 void testComplexSuperConstructorInvocationAllowed()
           
 void testComplexThisConstructorInvocationNotAllowed()
           
 void testCreateANewInstanceOfMe()
           
 void testForBracedBody()
           
 void testforValueReturnStatementOnly()
           
 void testForVoidReturnStatementOnly()
           
 void testImplicitSuperConstructor()
           
 void testSimpleSuperConstructorInvocationAllowed()
           
 void testSimpleThisConstructorInvocationAllowed()
           
 
Methods inherited from class junit.framework.TestCase
countTestCases, createResult, getName, run, run, runBare, runTest, setName, tearDown, toString
 
Methods inherited from class junit.framework.Assert
assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertFalse, assertFalse, assertNotNull, assertNotNull, assertNotSame, assertNotSame, assertNull, assertNull, assertSame, assertSame, assertTrue, assertTrue, fail, fail, failNotEquals, failNotSame, failSame
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ConstructorBodyTypeChecker.ConstructorBodyTypeCheckerTest

public ConstructorBodyTypeChecker.ConstructorBodyTypeCheckerTest()

ConstructorBodyTypeChecker.ConstructorBodyTypeCheckerTest

public ConstructorBodyTypeChecker.ConstructorBodyTypeCheckerTest(java.lang.String name)
Method Detail

setUp

public void setUp()
Overrides:
setUp in class TestCase

testForVoidReturnStatementOnly

public void testForVoidReturnStatementOnly()

testforValueReturnStatementOnly

public void testforValueReturnStatementOnly()

testCreateANewInstanceOfMe

public void testCreateANewInstanceOfMe()

testForBracedBody

public void testForBracedBody()

testSimpleThisConstructorInvocationAllowed

public void testSimpleThisConstructorInvocationAllowed()

testComplexThisConstructorInvocationNotAllowed

public void testComplexThisConstructorInvocationNotAllowed()

testSimpleSuperConstructorInvocationAllowed

public void testSimpleSuperConstructorInvocationAllowed()

testComplexSuperConstructorInvocationAllowed

public void testComplexSuperConstructorInvocationAllowed()

testImplicitSuperConstructor

public void testImplicitSuperConstructor()