mirror of
https://github.com/Eaglercraft-TeaVM-Fork/eagler-teavm.git
synced 2024-12-22 08:14:09 -08:00
Fixes unit test. Adds tests of Class.getComponentType()
This commit is contained in:
parent
620d2cef62
commit
9722a6e863
|
@ -25,6 +25,16 @@ class TClassTests {
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
public void arrayClassConsideredArray() {
|
public void arrayClassConsideredArray() {
|
||||||
assertFalse(Object[].class.isArray());
|
assertTrue(Object[].class.isArray());
|
||||||
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
public void arrayComponentTypeDetected() {
|
||||||
|
assertEquals(Object.class, Object[].class.getComponentType());
|
||||||
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
public void nonArrayComponentTypeIsNull() {
|
||||||
|
assertNull(Object.class.getComponentType());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user