// Path: src/main/java/org/lbogdanov/poker/core/Duration.java
// static final int MINUTES_PER_DAY = MINUTES_PER_HOUR * 8;
// 
// Path: src/main/java/org/lbogdanov/poker/core/Duration.java
// static final int MINUTES_PER_HOUR = 60;
// 
// Path: src/main/java/org/lbogdanov/poker/core/Duration.java
// static final int MINUTES_PER_WEEK = MINUTES_PER_DAY * 5;


import static org.junit.Assert.assertArrayEquals;
import static org.junit.Assert.assertEquals;
import static org.lbogdanov.poker.core.Duration.MINUTES_PER_DAY;
import static org.lbogdanov.poker.core.Duration.MINUTES_PER_HOUR;
import static org.lbogdanov.poker.core.Duration.MINUTES_PER_WEEK;
import org.junit.Rule;
import org.junit.Test;
import org.junit.rules.ExpectedException;
package org.lbogdanov.poker.core;




/**
 * Tests for {@link Duration} class.
 * 
 * @author Alexandra Fomina
 *
 */
public class DurationTest {

    @Rule
    public ExpectedException thrown = ExpectedException.none();

    /**
     * Test for {@link Duration#Duration(int)} with invalid input.
     */
    @Test(expected = IllegalArgumentException.class)
    public void testInvalidArgument() {
       new Duration(-1);
    }

    /**
     * Test for {@link Duration#parse(String)}.
     */
    @Test
    public void testParse() {
// Path: src/main/java/org/lbogdanov/poker/core/Duration.java
// static final int MINUTES_PER_DAY = MINUTES_PER_HOUR * 8;
// 
// Path: src/main/java/org/lbogdanov/poker/core/Duration.java
// static final int MINUTES_PER_HOUR = 60;
// 
// Path: src/main/java/org/lbogdanov/poker/core/Duration.java
// static final int MINUTES_PER_WEEK = MINUTES_PER_DAY * 5;


// Path: src/test/java/org/lbogdanov/poker/core/DurationTest.java
import static org.junit.Assert.assertArrayEquals;
import static org.junit.Assert.assertEquals;
import static org.lbogdanov.poker.core.Duration.MINUTES_PER_DAY;
import static org.lbogdanov.poker.core.Duration.MINUTES_PER_HOUR;
import static org.lbogdanov.poker.core.Duration.MINUTES_PER_WEEK;
import org.junit.Rule;
import org.junit.Test;
import org.junit.rules.ExpectedException;

package org.lbogdanov.poker.core;




/**
 * Tests for {@link Duration} class.
 * 
 * @author Alexandra Fomina
 *
 */
public class DurationTest {

    @Rule
    public ExpectedException thrown = ExpectedException.none();

    /**
     * Test for {@link Duration#Duration(int)} with invalid input.
     */
    @Test(expected = IllegalArgumentException.class)
    public void testInvalidArgument() {
       new Duration(-1);
    }

    /**
     * Test for {@link Duration#parse(String)}.
     */
    @Test
    public void testParse() {
        Duration[] durations = {new Duration(30), new Duration(MINUTES_PER_HOUR),