diff options
author | Juergen Haug | 2012-06-15 12:46:28 +0000 |
---|---|---|
committer | Juergen Haug | 2012-06-15 12:46:28 +0000 |
commit | db1daef4390d90ef1b3b9ede1f33f4312bcfdf74 (patch) | |
tree | c03941c03f79e5ae42ee03b2a327c7c03a5226a7 /tests/org.eclipse.etrice.integration.tests/src/org | |
parent | 5c1cfd9219168e79f77c779e9c0fb8d47feee790 (diff) | |
download | org.eclipse.etrice-db1daef4390d90ef1b3b9ede1f33f4312bcfdf74.tar.gz org.eclipse.etrice-db1daef4390d90ef1b3b9ede1f33f4312bcfdf74.tar.xz org.eclipse.etrice-db1daef4390d90ef1b3b9ede1f33f4312bcfdf74.zip |
[CQ 6485][config, generator, tests] merge attribute config
generator
Change-Id: Ia4e6538925ddced23555572065b78151c7373c92
Diffstat (limited to 'tests/org.eclipse.etrice.integration.tests/src/org')
-rw-r--r-- | tests/org.eclipse.etrice.integration.tests/src/org/eclipse/etrice/integration/tests/IntegrationTestConfigTest.java | 56 |
1 files changed, 56 insertions, 0 deletions
diff --git a/tests/org.eclipse.etrice.integration.tests/src/org/eclipse/etrice/integration/tests/IntegrationTestConfigTest.java b/tests/org.eclipse.etrice.integration.tests/src/org/eclipse/etrice/integration/tests/IntegrationTestConfigTest.java new file mode 100644 index 000000000..18d3d1ac0 --- /dev/null +++ b/tests/org.eclipse.etrice.integration.tests/src/org/eclipse/etrice/integration/tests/IntegrationTestConfigTest.java @@ -0,0 +1,56 @@ +/******************************************************************************* + * 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 + * + * CONTRIBUTORS: + * Thomas Jung + * Thomas Schuetz + * + *******************************************************************************/ + +package org.eclipse.etrice.integration.tests; + + +import static org.junit.Assert.assertEquals; + +import org.eclipse.etrice.integration.ConfigTest.SubSystemConfigTest; +import org.eclipse.etrice.integration.tests.base.IntegrationTestBase; +import org.junit.After; +import org.junit.Before; +import org.junit.Test; + + + +public class IntegrationTestConfigTest extends IntegrationTestBase { + private SubSystemConfigTest main_component = null; + + @Before + public void setUp() throws Exception { + main_component = new SubSystemConfigTest(null,"MainComponent"); + + // hand over the semaphore to the subsystem + main_component.setTestSemaphore(this.testSem); + } + + @Test (timeout=5000) + public void testActorClassAndInstanceConfiguration(){ + main_component.init(); // lifecycle init + main_component.start(); // lifecycle start + + waitForTestcase(); + + assertEquals(0,main_component.getTestErrorCode()); + } + + @After + public void tearDown() throws Exception { + // end the lifecycle + main_component.stop(); // lifecycle stop + main_component.destroy(); // lifecycle destroy + } + + +} |