| java.lang.ClassTestGetModifiers
ClassTestGetModifiers | public class ClassTestGetModifiers extends TestCase (Code) | | tested class: java.lang.Class
tested method: getModifiers
|
Method Summary | |
public void | test1() If the class represents a primitive type, then its public and final
modifiers should be on as well as its protected, private and interface
modifiers should be off. | public void | test2() If the class represents an array, then its final modifier should be on
and its interface modifier should be off. | public void | test3() If the class represents an array, then its final modifier should be on
and its interface modifier should be off. | public void | test4() An interface should always has abstract and interface modifiers on. | public void | test5() Checks whether a Boolean class is public and final. | public void | test6() Checks whether a ClassLoader class is public and abstract. |
test1 | public void test1()(Code) | | If the class represents a primitive type, then its public and final
modifiers should be on as well as its protected, private and interface
modifiers should be off.
|
test2 | public void test2()(Code) | | If the class represents an array, then its final modifier should be on
and its interface modifier should be off. Whether an array class has
public, protected, package private or private modifier determines by the
modifier of its component type.
|
test3 | public void test3()(Code) | | If the class represents an array, then its final modifier should be on
and its interface modifier should be off. Whether an array class has
public, protected, package private or private modifier determines by the
modifier of its component type.
|
test4 | public void test4()(Code) | | An interface should always has abstract and interface modifiers on.
|
test5 | public void test5()(Code) | | Checks whether a Boolean class is public and final.
|
test6 | public void test6()(Code) | | Checks whether a ClassLoader class is public and abstract.
|
|
|