nl.beesting.beangenerator.locators
Class AnnotationClassLocatorTest

java.lang.Object
  extended by junit.framework.Assert
      extended by junit.framework.TestCase
          extended by org.springframework.test.AbstractSpringContextTests
              extended by org.springframework.test.AbstractDependencyInjectionSpringContextTests
                  extended by nl.beesting.beangenerator.locators.AnnotationClassLocatorTest
All Implemented Interfaces:
junit.framework.Test

public class AnnotationClassLocatorTest
extends org.springframework.test.AbstractDependencyInjectionSpringContextTests


Field Summary
 
Fields inherited from class org.springframework.test.AbstractDependencyInjectionSpringContextTests
applicationContext, AUTOWIRE_BY_NAME, AUTOWIRE_BY_TYPE, AUTOWIRE_NO, managedVariableNames
 
Fields inherited from class org.springframework.test.AbstractSpringContextTests
logger
 
Constructor Summary
AnnotationClassLocatorTest()
           
 
Method Summary
 java.util.Collection<java.lang.Object> findCatsByColor(java.awt.Color color)
          Because method is a final class there is no way to mock it so we'll define it here...
protected  java.lang.String[] getConfigLocations()
           
 void setVictim(nl.beesting.beangenerator.locators.AnnotationClassLocator victim)
           
 void testShouldUseAnnotionToFindReturnType()
           
 
Methods inherited from class org.springframework.test.AbstractDependencyInjectionSpringContextTests
contextKey, getAutowireMode, getLoadCount, initManagedVariableNames, isDependencyCheck, isPopulateProtectedVariables, loadContextLocations, onSetUp, onTearDown, populateProtectedVariables, setAutowireMode, setDependencyCheck, setDirty, setPopulateProtectedVariables, setUp, tearDown
 
Methods inherited from class org.springframework.test.AbstractSpringContextTests
contextKeyString, getContext, hasCachedContext, loadContext, setDirty
 
Methods inherited from class junit.framework.TestCase
countTestCases, createResult, getName, run, run, runBare, runTest, setName, 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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

AnnotationClassLocatorTest

public AnnotationClassLocatorTest()
Method Detail

testShouldUseAnnotionToFindReturnType

public void testShouldUseAnnotionToFindReturnType()
                                           throws java.lang.NoSuchMethodException
Throws:
java.lang.NoSuchMethodException

setVictim

public void setVictim(nl.beesting.beangenerator.locators.AnnotationClassLocator victim)
Parameters:
victim - the victim to set

getConfigLocations

protected java.lang.String[] getConfigLocations()
Specified by:
getConfigLocations in class org.springframework.test.AbstractDependencyInjectionSpringContextTests

findCatsByColor

public java.util.Collection<java.lang.Object> findCatsByColor(java.awt.Color color)
Because method is a final class there is no way to mock it so we'll define it here... so we can test the annotion on it.

Parameters:
color - the color to search...
Returns:
null this is a test :D


Copyright © 2008. All Rights Reserved.