Last change
on this file since 8 was
2,
checked in by sherbold, 10 years ago
|
|
-
Property svn:mime-type set to
text/plain
|
File size:
958 bytes
|
Line | |
---|
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 |
|
---|
9 | public class ExperimentConfigurationTest {
|
---|
10 |
|
---|
11 | @Test
|
---|
12 | public void validateConfigurations() {
|
---|
13 | /*validateConfigurations("config_shared");
|
---|
14 | validateConfigurations("config_singleclassifier");
|
---|
15 | validateConfigurations("config_bagging");*/
|
---|
16 | validateConfigurations("exp-java/config");
|
---|
17 | validateConfigurations("exp-nasa/config");
|
---|
18 | }
|
---|
19 |
|
---|
20 | public void validateConfigurations(String folder) {
|
---|
21 | File configFolder = new File(folder);
|
---|
22 | boolean error = false;
|
---|
23 | for( File configFile : configFolder.listFiles() ) {
|
---|
24 | try {
|
---|
25 | if( configFile.isFile() ) {
|
---|
26 | new ExperimentConfiguration(configFile);
|
---|
27 | }
|
---|
28 | } catch (Exception e) {
|
---|
29 | System.err.println("Failure initializing the experiment configuration for configuration file " + configFile);
|
---|
30 | e.printStackTrace();
|
---|
31 | error = true;
|
---|
32 | }
|
---|
33 | }
|
---|
34 | if(error) fail();
|
---|
35 | }
|
---|
36 |
|
---|
37 | }
|
---|
Note: See
TracBrowser
for help on using the repository browser.