com.lexicalscope.fluentreflection.endtoend
Class TestReflectedClassFields

java.lang.Object
  extended by com.lexicalscope.fluentreflection.endtoend.TestReflectedClassFields

public class TestReflectedClassFields
extends Object


Nested Class Summary
static class TestReflectedClassFields.Fields
           
 
Field Summary
 org.junit.rules.ExpectedException exception
           
 
Constructor Summary
TestReflectedClassFields()
           
 
Method Summary
 void boundEqualsIsFalseForTheDifferentBoundInstances()
           
 void boundEqualsIsTrueForTheSameInstance()
           
 void boundToStringIsUseful()
           
 void canFindFieldByName()
           
 void cannotCallFieldWithTooManyArguments()
           
 void canNotFindStaticFieldOfBoundObject()
           
 void cannotReadFieldWithoutInstance()
           
 void canWriteField()
           
 void equalsIsTrueWhenTheFieldsAreTheSameAsEachOther()
           
 void equalsIsTrueWhenTheThatIsARandomOtherObject()
           
 void fieldDeclaringTypeIsCorrect()
           
 void fieldHasOneArgument()
           
 void finalFieldsAreMarkedAsFinal()
           
 void hashCodeIsTheSameForTheSameBoundInstance()
           
 void missingFieldThrowsException()
           
 void packageToStringIsUseful()
           
 void propertyNameIsAvailable()
           
 void publicFieldToStringIsUseful()
           
 void staticFinalToStringIsUseful()
           
 void staticToStringIsUseful()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

exception

public org.junit.rules.ExpectedException exception
Constructor Detail

TestReflectedClassFields

public TestReflectedClassFields()
Method Detail

canFindFieldByName

public void canFindFieldByName()
                        throws SecurityException,
                               NoSuchFieldException
Throws:
SecurityException
NoSuchFieldException

canNotFindStaticFieldOfBoundObject

public void canNotFindStaticFieldOfBoundObject()
                                        throws SecurityException,
                                               NoSuchFieldException
Throws:
SecurityException
NoSuchFieldException

canWriteField

public void canWriteField()
                   throws SecurityException,
                          NoSuchFieldException
Throws:
SecurityException
NoSuchFieldException

fieldDeclaringTypeIsCorrect

public void fieldDeclaringTypeIsCorrect()
                                 throws SecurityException,
                                        NoSuchFieldException
Throws:
SecurityException
NoSuchFieldException

finalFieldsAreMarkedAsFinal

public void finalFieldsAreMarkedAsFinal()
                                 throws SecurityException,
                                        NoSuchFieldException
Throws:
SecurityException
NoSuchFieldException

propertyNameIsAvailable

public void propertyNameIsAvailable()
                             throws SecurityException,
                                    NoSuchFieldException
Throws:
SecurityException
NoSuchFieldException

fieldHasOneArgument

public void fieldHasOneArgument()
                         throws SecurityException,
                                NoSuchFieldException
Throws:
SecurityException
NoSuchFieldException

publicFieldToStringIsUseful

public void publicFieldToStringIsUseful()
                                 throws SecurityException,
                                        NoSuchFieldException
Throws:
SecurityException
NoSuchFieldException

packageToStringIsUseful

public void packageToStringIsUseful()
                             throws SecurityException,
                                    NoSuchFieldException
Throws:
SecurityException
NoSuchFieldException

staticToStringIsUseful

public void staticToStringIsUseful()
                            throws SecurityException,
                                   NoSuchFieldException
Throws:
SecurityException
NoSuchFieldException

staticFinalToStringIsUseful

public void staticFinalToStringIsUseful()
                                 throws SecurityException,
                                        NoSuchFieldException
Throws:
SecurityException
NoSuchFieldException

boundToStringIsUseful

public void boundToStringIsUseful()
                           throws SecurityException,
                                  NoSuchFieldException
Throws:
SecurityException
NoSuchFieldException

boundEqualsIsTrueForTheSameInstance

public void boundEqualsIsTrueForTheSameInstance()
                                         throws SecurityException,
                                                NoSuchFieldException
Throws:
SecurityException
NoSuchFieldException

hashCodeIsTheSameForTheSameBoundInstance

public void hashCodeIsTheSameForTheSameBoundInstance()
                                              throws SecurityException,
                                                     NoSuchFieldException
Throws:
SecurityException
NoSuchFieldException

boundEqualsIsFalseForTheDifferentBoundInstances

public void boundEqualsIsFalseForTheDifferentBoundInstances()
                                                     throws SecurityException,
                                                            NoSuchFieldException
Throws:
SecurityException
NoSuchFieldException

equalsIsTrueWhenTheFieldsAreTheSameAsEachOther

public void equalsIsTrueWhenTheFieldsAreTheSameAsEachOther()
                                                    throws SecurityException,
                                                           NoSuchFieldException
Throws:
SecurityException
NoSuchFieldException

equalsIsTrueWhenTheThatIsARandomOtherObject

public void equalsIsTrueWhenTheThatIsARandomOtherObject()
                                                 throws SecurityException,
                                                        NoSuchFieldException
Throws:
SecurityException
NoSuchFieldException

cannotReadFieldWithoutInstance

public void cannotReadFieldWithoutInstance()
                                    throws SecurityException,
                                           NoSuchFieldException
Throws:
SecurityException
NoSuchFieldException

cannotCallFieldWithTooManyArguments

public void cannotCallFieldWithTooManyArguments()
                                         throws SecurityException,
                                                NoSuchFieldException
Throws:
SecurityException
NoSuchFieldException

missingFieldThrowsException

public void missingFieldThrowsException()
                                 throws SecurityException,
                                        NoSuchFieldException
Throws:
SecurityException
NoSuchFieldException


Copyright © 2011-2012 lexicalscope. All Rights Reserved.