elvyssoares

Conditional Operator - Original - Toy Example

Jun 10th, 2020
167
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.13 KB | None | 0 0
  1. boolean b = MyComponent.isB();
  2. @Test
  3. public void test() {
  4.     if (b) {
  5.         MyClass c = new MyClass();
  6.         assertTrue(c.isA());
  7.     }
  8. }
Add Comment
Please, Sign In to add comment