JeffGrigg icon

Untitled

JeffGrigg | PRO | 04/03/21 10:29:14 PM UTC | 0 ⭐ | 12148 👁️ | Never ⏰ | []
Java 5 |

0 B

|

None

|

0 👍

/

0 👎

import junit.framework.TestCase;
 
public class MyFirstTest extends TestCase {
    public void testOneAndOneIsTwo() {
        assertEquals(2, add(1, 1));
    }
 
    public void testTwoAndTwoIsFour() {
        assertEquals(4, add(2, 2));
    }
 
    public void testTwoAndThreeIsFive() {
        assertEquals(5, add(2, 3));
    }
 
    private int add(int left, int right) {
        return left + right;
    }
}
 

Comments

  •  icon
    01/01/70 12:00:00 AM UTC
    Plain Text |

    0 B

    |

    👍

    /

    👎

    
        
  •  icon
    01/01/70 12:00:00 AM UTC
    Plain Text |

    0 B

    |

    👍

    /

    👎

    
        
  •  icon
    01/01/70 12:00:00 AM UTC
    Plain Text |

    0 B

    |

    👍

    /

    👎