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
Exceptionpublic void setSimpleByte() throws Exception
Exceptionpublic void setPropertyToNull() throws Exception
Exceptionpublic void setNonExistentProperty() throws Exception
Exceptionpublic void setPropertyWithInCompatibleValue() throws Exception
Exceptionpublic void setNullToPrimitiveProperty() throws Exception
Exceptionpublic void setReadOnlyProperty() throws Exception
Exceptionpublic void setNull() throws Exception
Exceptionpublic void setPrivateProperty()
public void setProtectedProperty()
public void setDefaultProperty()
public void setExcpetionProperty()
Copyright © 2012–2014 The Apache Software Foundation. All rights reserved.