public class SetPropertyTestCase extends Object
Constructor and Description |
---|
SetPropertyTestCase() |
Modifier and Type | Method and Description |
---|---|
void |
setDefaultProperty() |
void |
setExcpetionProperty() |
void |
setNonExistentProperty()
Tests if trying to set a nonexistent property causes an NPE.
|
void |
setNull()
Test if passing null to set causes an NPE
|
void |
setNullToPrimitiveProperty()
Tests if setting null to a primitive property causes an IllegalArgumentException.
|
void |
setPrivateProperty() |
void |
setPropertyToNull()
Test if setting null to an object property works.
|
void |
setPropertyWithInCompatibleValue()
Test if trying to set a property with an incompatible value type causes an IllegalArgumentException.
|
void |
setProtectedProperty() |
void |
setReadOnlyProperty()
Test if trying to set a read only property causes a NoSuchMethodException.
|
void |
setSimpleBoolean() |
void |
setSimpleByte() |
void |
setUp() |
void |
tearDown() |
public SetPropertyTestCase()
public void setUp()
public void tearDown()
public void setSimpleBoolean() throws Exception
Exception
public void setSimpleByte() throws Exception
Exception
public void setPropertyToNull() throws Exception
Exception
public void setNonExistentProperty() throws Exception
Exception
public void setPropertyWithInCompatibleValue() throws Exception
Exception
public void setNullToPrimitiveProperty() throws Exception
Exception
public void setReadOnlyProperty() throws Exception
Exception
public void setNull() throws Exception
Exception
public void setPrivateProperty()
public void setProtectedProperty()
public void setDefaultProperty()
public void setExcpetionProperty()
Copyright © 2012–2014 The Apache Software Foundation. All rights reserved.