Last change
on this file was
11,
checked in by sherbold, 10 years ago
|
- marked deprecated tests as such
|
-
Property svn:mime-type set to
text/plain
|
File size:
979 bytes
|
Rev | Line | |
---|
[2] | 1 | package de.ugoe.cs.cpdp;
|
---|
| 2 |
|
---|
| 3 | import java.io.File;
|
---|
| 4 |
|
---|
| 5 | import org.junit.Test;
|
---|
| 6 |
|
---|
| 7 | import static org.junit.Assert.*;
|
---|
| 8 |
|
---|
[11] | 9 | // TODO update test
|
---|
[2] | 10 | public class ExperimentConfigurationTest {
|
---|
| 11 |
|
---|
| 12 | @Test
|
---|
| 13 | public void validateConfigurations() {
|
---|
| 14 | /*validateConfigurations("config_shared");
|
---|
| 15 | validateConfigurations("config_singleclassifier");
|
---|
| 16 | validateConfigurations("config_bagging");*/
|
---|
| 17 | validateConfigurations("exp-java/config");
|
---|
| 18 | validateConfigurations("exp-nasa/config");
|
---|
| 19 | }
|
---|
| 20 |
|
---|
| 21 | public void validateConfigurations(String folder) {
|
---|
| 22 | File configFolder = new File(folder);
|
---|
| 23 | boolean error = false;
|
---|
| 24 | for( File configFile : configFolder.listFiles() ) {
|
---|
| 25 | try {
|
---|
| 26 | if( configFile.isFile() ) {
|
---|
| 27 | new ExperimentConfiguration(configFile);
|
---|
| 28 | }
|
---|
| 29 | } catch (Exception e) {
|
---|
| 30 | System.err.println("Failure initializing the experiment configuration for configuration file " + configFile);
|
---|
| 31 | e.printStackTrace();
|
---|
| 32 | error = true;
|
---|
| 33 | }
|
---|
| 34 | }
|
---|
| 35 | if(error) fail();
|
---|
| 36 | }
|
---|
| 37 |
|
---|
| 38 | }
|
---|
Note: See
TracBrowser
for help on using the repository browser.