소스 검색

correct the OperationsWithoutBracesTest

jthoene 8 년 전
부모
커밋
4b1b2da77e
1개의 변경된 파일6개의 추가작업 그리고 11개의 파일을 삭제
  1. 6 11
      test-plugins/org.yakindu.sct.test.models/tests/OperationsWithoutBraces.sctunit

+ 6 - 11
test-plugins/org.yakindu.sct.test.models/tests/OperationsWithoutBraces.sctunit

@@ -1,21 +1,16 @@
 testclass OperationsWithoutBraces for statechart OperationsWithoutBraces{
 	@Test
 	operation OperationsWithoutBracesTest(){ 
+		mock myBoolOp returns (false)
+		mock myIntOp returns (0)
+		mock myRealOp returns (0.0)
 		enter
-		assert active (OperationsWithoutBraces.main_region.A)
 		assert active (OperationsWithoutBraces.another_region.A)
-		
-		proceed 1 cycle
-		assert active (OperationsWithoutBraces.main_region.B)
-		assert active (OperationsWithoutBraces.another_region.B)
-		 
+		assert active (OperationsWithoutBraces.main_region.A)
 		proceed 1 cycle
-		
+		assert active (OperationsWithoutBraces.another_region.C)
 		assert active (OperationsWithoutBraces.main_region.C)
-		assert active (OperationsWithoutBraces.another_region.C) 
-		
-		proceed 1 cycle
-		
+		proceed 1 cycle	
 		assert active (OperationsWithoutBraces.main_region.D)
 		assert active (OperationsWithoutBraces.another_region.D)