JUnit_Lab_10/test/SubscriptionTest.java
/**
    * Test of roundMonthlySubscription method, of class Subscription.
    */
Test of roundMonthlySubscription method, of class Subscription.
Test of roundMonthlySubscription method of class Subscription .
@Test
    public void roundMonthlySubscription() {
    System.out.println("Test if pricePerMonth rounds up to nearest cents...");
    Subscription subs = new Subscription(200,3);
    double expResult = 0.67;
    double result = subs.getPricePerMonth();
    assertEquals(expResult, result , 0.0);
    }
@ Test public void roundMonthlySubscription ( ) { System . out . println ( "Test if pricePerMonth rounds up to nearest cents..." ) ; Subscription subs = new Subscription ( 200 , 3 ) ; double expResult = 0.67 ; double result = subs . getPricePerMonth ( ) ; assertEquals ( expResult , result , 0.0 ) ; }
Test of roundMonthlySubscription method, of class Subscription.
Test of roundMonthlySubscription method of class Subscription .