Review comments added

This commit is contained in:
Urvy Agrawal 2019-01-08 20:09:51 +05:30
parent 115a52a124
commit 2610176931
1 changed files with 6 additions and 0 deletions

View File

@ -35,6 +35,12 @@ public class InstanceOfUnitTest {
Circle circle = new Circle();
Assert.assertTrue("circle is instance of Shape", circle instanceof Shape);
}
@Test
public void giveWhenTypeIsOfObjectType_thenReturnTrue() {
Thread thread = new Thread();
Assert.assertTrue("thread is instance of Object", thread instanceof Object);
}
@Test
public void giveWhenInstanceValueIsNull_thenReturnFalse() {