import org.junit.Assert;
import org.junit.Test;

/**
 * ExampleTest - tests for the sodaParty example.
 * @author Alvin Chao
 * @version 10-2-19
 */ 
 
public class ExampleTest {

    /**
     * defaultTest this covers the creation of the class itself.
     */
    
    @Test public void defaultTest() {
        new Example();
    }
    
    /**
     * badParty these cover bad parties.
     */
    
    @Test public void badParty() {
        
        Assert.assertFalse(Example.sodaParty(30, false));
        Assert.assertFalse(Example.sodaParty(30, true));
        Assert.assertFalse(Example.sodaParty(61, false));
        Assert.assertFalse(Example.sodaParty(39, false));
        Assert.assertFalse(Example.sodaParty(39, true));
    }
    
    
    /**
     * goodParty these cover bad parties.
     */
    
    @Test public void goodParty() {
        Assert.assertTrue(Example.sodaParty(50, false));
        Assert.assertTrue(Example.sodaParty(70, true));
        Assert.assertTrue(Example.sodaParty(50, true));
        Assert.assertTrue(Example.sodaParty(60, false));
        Assert.assertTrue(Example.sodaParty(40, false));
        Assert.assertTrue(Example.sodaParty(40, true));
    }
    
    
    
    
}
