Updated unit tests to match new lug rotation
This commit is contained in:
		
							parent
							
								
									0fb216ae5a
								
							
						
					
					
						commit
						3f84149cb8
					
				@ -22,7 +22,7 @@ public class LaunchLugTest extends BaseTestCase {
 | 
			
		||||
		lug.setInstanceCount(2);
 | 
			
		||||
		
 | 
			
		||||
		double expX = 0.111 + body.getLocations()[0].x;
 | 
			
		||||
		double expR = body.getOuterRadius()+lug.getOuterRadius();
 | 
			
		||||
		double expR = -(body.getOuterRadius()+lug.getOuterRadius());
 | 
			
		||||
		Coordinate expPos = new Coordinate( expX, expR, 0, 0);
 | 
			
		||||
		Coordinate actPos[] = lug.getLocations();
 | 
			
		||||
		assertEquals(" LaunchLug has the wrong x value: ", expPos.x, actPos[0].x, EPSILON);
 | 
			
		||||
 | 
			
		||||
@ -89,7 +89,7 @@ public class RocketTest extends BaseTestCase {
 | 
			
		||||
				}
 | 
			
		||||
 | 
			
		||||
				LaunchLug lugs = (LaunchLug)body.getChild(1);
 | 
			
		||||
				expLoc = new Coordinate(0.181, 0.015, 0);
 | 
			
		||||
				expLoc = new Coordinate(0.181, -0.015, 0);
 | 
			
		||||
				assertThat(lugs.getName()+" have incorrect count: ", lugs.getInstanceCount(), equalTo(1));
 | 
			
		||||
				actLocs = lugs.getComponentLocations();
 | 
			
		||||
				{ // singular instance:
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user