blob: 23e602e253e492a2103fb2e9104b7c27d2d2fc68 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
|
/*******************************************************************************
* Copyright (c) 2010 Tieto Deutschland Gmbh (http://www.tieto.com).
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
*
* Autor:
* Thomas Jung
*
*******************************************************************************/
package org.eclipse.etrice.integration.tests;
import static org.junit.Assert.assertEquals;
import org.eclipse.etrice.integration.HandlerTest.SubSystem_HandlerTest;
import org.eclipse.etrice.integration.tests.base.IntegrationTestBase;
import org.junit.After;
import org.junit.Before;
import org.junit.Test;
public class IntegrationTestHandler extends IntegrationTestBase {
@Before
public void setUp() throws Exception {
}
@Test (timeout=5000)
public void testHandler(){
SubSystem_HandlerTest main_component = new SubSystem_HandlerTest(null,"MainComponent");
// hand over the semaphore to the subsystem
main_component.setTestSemaphore(this.testSem);
main_component.init(); // lifecycle init
main_component.start(); // lifecycle start
waitForTestcase();
assertEquals(0,main_component.getTestErrorCode());
// end the lifecycle
main_component.stop(); // lifecycle stop
main_component.destroy(); // lifecycle destroy
}
@After
public void tearDown() throws Exception {
}
}
|