public class BlockExpressionTest extends TestClass
| Modifier and Type | Class and Description |
|---|---|
static class |
BlockExpressionTest.FakeProcessInfo |
static interface |
BlockExpressionTest.TestInterface |
TestClass.EqualityTester| Constructor and Description |
|---|
BlockExpressionTest() |
_suite, addMetadata, afterTestClass, afterTestMethod, assertArrayEquals, assertArrayEquals, assertArrayEquals, assertArrayEquals, assertCausesException, assertCollectionEquals, assertCollectionEquals, assertIterableEquals, assertIterableEquals, assertIterableEqualsIgnoreOrder, assertListEquals, assertListEquals, assertMatchRegex, assertSetsEqual, assertZero, assertZero, beforeTestClass, beforeTestMethod, createClassMetadata, createDefaultEnvironment, createMetadata, createMetadata, createMethodMetadata, createTestClass, doRunTest, getClassName, getExecutionManager, getFullClassNameInternal, getMetadata, getName, getNumberOfInstancesOfTestClassCreated, getPackageName, getTotalNumTestMethods, getType, getTypeName, initInternalData, initMetadata, isGosuTest, isMetaAnnotation, isMetaAnnotationInfo, reallyRun, reallyRunBare, run, runBare, runTest, setExecutionManager, setGosuTest, setName, setUp, tearDown, toStringassertEquals, 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, formatpublic void testBasicBlockInvocationWorks()
throws gw.lang.parser.exceptions.ParseResultsException
public void testBasicBlockArgPassing()
throws gw.lang.parser.exceptions.ParseResultsException
public void testInScopeClosureCapture()
throws gw.lang.parser.exceptions.ParseResultsException
public void testDownwardScopeClosureCapture()
throws gw.lang.parser.exceptions.ParseResultsException
public void testUpwardClosureCapture()
throws gw.lang.parser.exceptions.ParseResultsException
public void testClosureArgPassingWorksWithMultipleArgs()
throws gw.lang.parser.exceptions.ParseResultsException
public void testClosureArgPassingWorksWithMultipleArgPasses()
throws gw.lang.parser.exceptions.ParseResultsException
public void testLocalVariablesPreserveCorrectly1()
throws gw.lang.parser.exceptions.ParseResultsException
public void testLocalVariablesPreserveCorrectly2()
throws gw.lang.parser.exceptions.ParseResultsException
public void testLocalVariablesPreserveCorrectly3()
throws gw.lang.parser.exceptions.ParseResultsException
public void testLocalVariablesPreserveCorrectly4()
throws gw.lang.parser.exceptions.ParseResultsException
public void testScopingFollowsIntutiveLexicalConventions()
throws gw.lang.parser.exceptions.ParseResultsException
public void testScopingFollowsIntutiveLexicalConventions2()
throws gw.lang.parser.exceptions.ParseResultsException
public void testWrappedBlocksWorkCorrectlyWithBlockSymbols()
throws gw.lang.parser.exceptions.ParseResultsException
public void testWrappedBlocksWorkCorrectlyWithNormalSymbols()
throws gw.lang.parser.exceptions.ParseResultsException
public void testDoubleClosureCaptureWorksCorrectly()
throws gw.lang.parser.exceptions.ParseResultsException
public void testGlobalMethodsNotCaptured()
throws gw.lang.parser.exceptions.ParseResultsException
public void testClosureStateIsPreservedBetweenInvocations()
throws gw.lang.parser.exceptions.ParseResultsException
public void testArgumentTypesOfBlockInferredIfPossible()
throws gw.lang.parser.exceptions.ParseResultsException
public void testExplicitArgumentTypesOKWhenBlockInferrenceIsPossible()
throws gw.lang.parser.exceptions.ParseResultsException
public void testBlockArgumentTypesInferredOnArgExpressionOnly()
throws gw.lang.parser.exceptions.ParseResultsException
public void testThisCapturedWithinClasses()
throws gw.lang.parser.exceptions.ParseResultsException
public void testThisCapturedWithinClassesUsingThis()
throws gw.lang.parser.exceptions.ParseResultsException
public void testThisCapturedWithinClassesFromSubclassUsingSuper()
throws gw.lang.parser.exceptions.ParseResultsException
public void testThisCapturedWithinClasses2()
throws gw.lang.parser.exceptions.ParseResultsException
public void testThisCapturedWithinClasses3()
throws gw.lang.parser.exceptions.ParseResultsException
public void testThisCapturedWithinClasses4()
throws gw.lang.parser.exceptions.ParseResultsException
public void testClassCaptureWorksCorrectly()
throws gw.lang.parser.exceptions.ParseResultsException
public void testBlockMethodOverloadingWithCompatibleBlockTypesAllowsInferrence1()
throws gw.lang.parser.exceptions.ParseResultsException
public void testBlockMethodOverloadingWithCompatibleBlockTypesAllowsInferrence2()
throws gw.lang.parser.exceptions.ParseResultsException
public void testBlockMethodOverloadingWithIncompatibleBlockTypesIsNotAllowed()
public void testLocalVariableIdentifierExpressionsUsesSameReference()
throws gw.lang.parser.exceptions.ParseResultsException
public void testPsychoticRecursionActuallyWorks()
throws gw.lang.parser.exceptions.ParseResultsException
public void testPsychoticRecursionWorksUpward()
throws gw.lang.parser.exceptions.ParseResultsException
public void testPsychoticRecursionWorksDownward()
throws gw.lang.parser.exceptions.ParseResultsException
public void testBlockMethodOverloadingWithBlocksDispatchesCorrectly1()
throws gw.lang.parser.exceptions.ParseResultsException
public void testBlockMethodOverloadingWithBlocksDispatchesCorrectly2()
throws gw.lang.parser.exceptions.ParseResultsException
public void testMethodInvocationWithSimpleBooleanExpressionWorks1()
throws gw.lang.parser.exceptions.ParseResultsException
public void testMethodInvocationWithSimpleBooleanExpressionWorks2()
throws gw.lang.parser.exceptions.ParseResultsException
public void testMethodInvocationWithSimpleBooleanExpressionWorksWitProps1()
throws gw.lang.parser.exceptions.ParseResultsException
public void testMethodInvocationWithSimpleBooleanExpressionWorksWithProps2()
throws gw.lang.parser.exceptions.ParseResultsException
public void testBlocksWorkInParameterizedTypes()
throws gw.lang.parser.exceptions.ParseResultsException
public void testBlocksWorkInArgumentsToParameterizedMethods()
throws gw.lang.parser.exceptions.ParseResultsException
public void testCallingBlockWithIncompatibleTypeCausesError()
public void testDoublyNestedBlockCaptureWorks1()
throws gw.lang.parser.exceptions.ParseResultsException
public void testDoublyNestedBlockCaptureWorks2()
throws gw.lang.parser.exceptions.ParseResultsException
public void testDoublyNestedBlockCaptureWorks3()
throws gw.lang.parser.exceptions.ParseResultsException
public void testDoublyNestedBlockCaptureWorks4()
throws gw.lang.parser.exceptions.ParseResultsException
public void testDoublyNestedBlockCaptureOfFunctionSymbolsWorks()
throws gw.lang.parser.exceptions.ParseResultsException
public void testCapturedSymbolsAreUsableOutsideOfCaptureScope()
throws gw.lang.parser.exceptions.ParseResultsException
public void testCapturedSymbolsAreUsableOutsideOfCaptureScopeInConstructor()
throws gw.lang.parser.exceptions.ParseResultsException
public void testCC35885CantPassBlockIntoSuperCallInConstructor()
throws gw.lang.parser.exceptions.ParseResultsException
public void testCapturingLoopVariable()
throws gw.lang.parser.exceptions.ParseResultsException
public static void doIt(BlockExpressionTest.TestInterface i)
public void testArgInferrenceWorksWithInterfaces()
throws gw.lang.parser.exceptions.ParseResultsException
public void testArgInferrenceWorksWithInterfaces2()
throws gw.lang.parser.exceptions.ParseResultsException
public void testArgInferrenceBiasesTowardBlocks()
throws gw.lang.parser.exceptions.ParseResultsException
public void testVariablesAreNotSharedAcrossIterationOfLoop1()
throws gw.lang.parser.exceptions.ParseResultsException
public void testVariablesAreNotSharedAcrossIterationOfLoop2()
throws gw.lang.parser.exceptions.ParseResultsException
public void testVariablesAreNotSharedAcrossIterationOfLoop3()
throws gw.lang.parser.exceptions.ParseResultsException
public void testVariablesAreNotSharedAcrossIterationOfLoop4()
throws gw.lang.parser.exceptions.ParseResultsException
public void testBadPathCausesCompileErrorInBlock()
throws gw.lang.parser.exceptions.ParseResultsException
public void testErroneousVarStatementsHaveGoodErrorMessages()
throws gw.lang.parser.exceptions.ParseResultsException
public void testErroneousIfStatementsHaveGoodErrorMessages()
throws gw.lang.parser.exceptions.ParseResultsException
public void testErroneousSwitchStatementsHaveGoodErrorMessages()
throws gw.lang.parser.exceptions.ParseResultsException
public void testErroneousAssignmentStatementsHaveGoodErrorMessages()
throws gw.lang.parser.exceptions.ParseResultsException
public void testCannotDefineFunctionsOrPropertiesInBlocks()
throws gw.lang.parser.exceptions.ParseResultsException
public void testCanDefineFunctionsOrPropertiesInBlocks()
throws gw.lang.parser.exceptions.ParseResultsException
public void testSuperNotAllowedInBlocks()
throws gw.lang.parser.exceptions.ParseResultsException
public void testSuperAllowedInAnonWithinBlock()
Copyright © 2015. All rights reserved.