Review comments added

This commit is contained in:
Urvy Agrawal 2019-01-08 20:09:51 +05:30
parent 115a52a124
commit 2610176931

View File

@ -36,6 +36,12 @@ public class InstanceOfUnitTest {
Assert.assertTrue("circle is instance of Shape", circle instanceof Shape); 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 @Test
public void giveWhenInstanceValueIsNull_thenReturnFalse() { public void giveWhenInstanceValueIsNull_thenReturnFalse() {
Circle circle = null; Circle circle = null;