package jsprit.core.problem.constraint;

import static org.junit.Assert.*;

import org.junit.Test;

public class TestConstraintManager {

	@Test
	public void testIt(){
		assertFalse(true);
	}

}

@@ -72,119 +72,1250 @@
 .*;%0A
-%0Aimport org.junit.Test;%0A%0Apublic class TestConstraintManager %7B%0A%0A%09@Test%0A%09public void testIt()%7B%0A%09%09assertFalse(true
+import static org.mockito.Mockito.mock;%0A%0Aimport java.util.ArrayList;%0Aimport java.util.List;%0A%0Aimport jsprit.core.problem.VehicleRoutingProblem;%0Aimport jsprit.core.problem.solution.route.state.RouteAndActivityStateGetter;%0A%0Aimport org.junit.Test;%0A%0Apublic class TestConstraintManager %7B%0A%0A%09@Test%0A%09public void whenGettingConstraintsViaConstructor_theyShouldBeResolvedCorrectly()%7B%0A%09%09List%3CConstraint%3E constraints = new ArrayList%3CConstraint%3E();%0A%09%09constraints.add(new ServiceDeliveriesFirstConstraint());%0A%09%09constraints.add(mock(HardRouteStateLevelConstraint.class));%0A%09%09ConstraintManager cManager = new ConstraintManager(mock(VehicleRoutingProblem.class),mock(RouteAndActivityStateGetter.class),constraints);%0A%09%09assertEquals(2,cManager.getConstraints().size());%0A%09%7D%0A%09%0A%09@Test%0A%09public void whenGettingConstraintsViaConstructorAndAtLeastOneConstraintCannotBeResolved_itShouldOnlyAddTheKnownConstraints()%7B%0A%09%09List%3CConstraint%3E constraints = new ArrayList%3CConstraint%3E();%0A%09%09constraints.add(new ServiceDeliveriesFirstConstraint());%0A%09%09constraints.add(mock(Constraint.class));%0A%09%09ConstraintManager cManager = new ConstraintManager(mock(VehicleRoutingProblem.class),mock(RouteAndActivityStateGetter.class),constraints);%0A%09%09assertEquals(1,cManager.getConstraints().size()
 );%0A%09

add test for ConstraintManager