Simulator/test/model/agent/humanAgent/aatom/operationalLevel/action/movement/MovementModuleTest.java
/**
	 * Tests the speed bound method.
	 */
Tests the speed bound method.
Tests the speed bound method .
@Test
	public void testBoundSpeed() {
		MovementModule movement = new MovementModule(1) {
			@Override
			public Vector getMove(int timeStep) {
				return new Vector(1, 1);
			}
		};
		Vector v = movement.boundSpeed(new Vector(10, 10));
		Assert.assertEquals(v.length(), 1.5, 0.001);
	}
@ Test public void testBoundSpeed ( ) { MovementModule movement = new MovementModule ( 1 ) { @ Override public Vector getMove ( int timeStep ) { return new Vector ( 1 , 1 ) ; } } ; Vector v = movement . boundSpeed ( new Vector ( 10 , 10 ) ) ; Assert . assertEquals ( v . length ( ) , 1.5 , 0.001 ) ; }
Tests the speed bound method.
Tests the speed bound method .