-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'newgen' of https://github.com/d3scomp/JDEECo.git into n…
…ewgen
- Loading branch information
Showing
4 changed files
with
525 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
117 changes: 117 additions & 0 deletions
117
jdeeco-core/test/cz/cuni/mff/d3s/deeco/runtime/RuntimeConfigurationTest.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,117 @@ | ||
package cz.cuni.mff.d3s.deeco.runtime; | ||
|
||
import org.junit.*; | ||
import static org.junit.Assert.*; | ||
|
||
/** | ||
* The class <code>RuntimeConfigurationTest</code> contains tests for the class <code>{@link RuntimeConfiguration}</code>. | ||
* | ||
* @generatedBy CodePro at 8.11.13 10:33 | ||
* @author Jaroslav Keznikl <keznikl@d3s.mff.cuni.cz> | ||
* | ||
*/ | ||
public class RuntimeConfigurationTest { | ||
/** | ||
* Run the RuntimeConfiguration(Scheduling,Distribution,Execution) constructor test. | ||
* | ||
* @throws Exception | ||
* | ||
* @generatedBy CodePro at 8.11.13 10:33 | ||
*/ | ||
@Test | ||
public void testRuntimeConfiguration() | ||
throws Exception { | ||
RuntimeConfiguration.Scheduling scheduling = RuntimeConfiguration.Scheduling.WALL_TIME; | ||
RuntimeConfiguration.Distribution distribution = RuntimeConfiguration.Distribution.LOCAL; | ||
RuntimeConfiguration.Execution execution = RuntimeConfiguration.Execution.SINGLE_THREADED; | ||
|
||
RuntimeConfiguration result = new RuntimeConfiguration(scheduling, distribution, execution); | ||
|
||
// add additional test code here | ||
assertNotNull(result); | ||
assertEquals("RuntimeConfiguration [scheduling=WALL_TIME, distribution=LOCAL, execution=SINGLE_THREADED]", result.toString()); | ||
} | ||
|
||
/** | ||
* Run the RuntimeConfiguration.Distribution getDistribution() method test. | ||
* | ||
* @throws Exception | ||
* | ||
* @generatedBy CodePro at 8.11.13 10:33 | ||
*/ | ||
@Test | ||
public void testGetDistribution() | ||
throws Exception { | ||
RuntimeConfiguration fixture = new RuntimeConfiguration(RuntimeConfiguration.Scheduling.WALL_TIME, RuntimeConfiguration.Distribution.LOCAL, RuntimeConfiguration.Execution.SINGLE_THREADED); | ||
|
||
RuntimeConfiguration.Distribution result = fixture.getDistribution(); | ||
|
||
// add additional test code here | ||
assertNotNull(result); | ||
assertEquals("LOCAL", result.toString()); | ||
assertEquals("LOCAL", result.name()); | ||
assertEquals(0, result.ordinal()); | ||
} | ||
|
||
/** | ||
* Run the RuntimeConfiguration.Execution getExecution() method test. | ||
* | ||
* @throws Exception | ||
* | ||
* @generatedBy CodePro at 8.11.13 10:33 | ||
*/ | ||
@Test | ||
public void testGetExecution() | ||
throws Exception { | ||
RuntimeConfiguration fixture = new RuntimeConfiguration(RuntimeConfiguration.Scheduling.WALL_TIME, RuntimeConfiguration.Distribution.LOCAL, RuntimeConfiguration.Execution.SINGLE_THREADED); | ||
|
||
RuntimeConfiguration.Execution result = fixture.getExecution(); | ||
|
||
// add additional test code here | ||
assertNotNull(result); | ||
assertEquals("SINGLE_THREADED", result.toString()); | ||
assertEquals("SINGLE_THREADED", result.name()); | ||
assertEquals(0, result.ordinal()); | ||
} | ||
|
||
/** | ||
* Run the RuntimeConfiguration.Scheduling getScheduling() method test. | ||
* | ||
* @throws Exception | ||
* | ||
* @generatedBy CodePro at 8.11.13 10:33 | ||
*/ | ||
@Test | ||
public void testGetScheduling() | ||
throws Exception { | ||
RuntimeConfiguration fixture = new RuntimeConfiguration(RuntimeConfiguration.Scheduling.WALL_TIME, RuntimeConfiguration.Distribution.LOCAL, RuntimeConfiguration.Execution.SINGLE_THREADED); | ||
|
||
RuntimeConfiguration.Scheduling result = fixture.getScheduling(); | ||
|
||
// add additional test code here | ||
assertNotNull(result); | ||
assertEquals("WALL_TIME", result.toString()); | ||
assertEquals("WALL_TIME", result.name()); | ||
assertEquals(0, result.ordinal()); | ||
} | ||
|
||
/** | ||
* Run the String toString() method test. | ||
* | ||
* @throws Exception | ||
* | ||
* @generatedBy CodePro at 8.11.13 10:33 | ||
*/ | ||
@Test | ||
public void testToString() | ||
throws Exception { | ||
RuntimeConfiguration fixture = new RuntimeConfiguration(RuntimeConfiguration.Scheduling.WALL_TIME, RuntimeConfiguration.Distribution.LOCAL, RuntimeConfiguration.Execution.SINGLE_THREADED); | ||
|
||
String result = fixture.toString(); | ||
|
||
// add additional test code here | ||
assertEquals("RuntimeConfiguration [scheduling=WALL_TIME, distribution=LOCAL, execution=SINGLE_THREADED]", result); | ||
} | ||
|
||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.