JUnit_Lab_10/test/SubscriptionTest.java
/**
     * Test of getPricePerMonth method, of class Subscription.
     */
Test of getPricePerMonth method, of class Subscription.
Test of getPricePerMonth method of class Subscription .
@Test
    public void testGetPricePerMonth() {
        System.out.println("Test if pricePerMonth returns Euro...");
        Subscription subs = new Subscription(200,2);
        double expResult = 1.0;
        double result = subs.getPricePerMonth();
        assertEquals(expResult, result, 0.0);
    }
@ Test public void testGetPricePerMonth ( ) { System . out . println ( "Test if pricePerMonth returns Euro..." ) ; Subscription subs = new Subscription ( 200 , 2 ) ; double expResult = 1.0 ; double result = subs . getPricePerMonth ( ) ; assertEquals ( expResult , result , 0.0 ) ; }
Test of getPricePerMonth method, of class Subscription.
Test of getPricePerMonth method of class Subscription .
// TODO review the generated test code and remove the default call to fail. // fail("The test case is a prototype.");