FRosner / DataGenerator

Tool for generating various test data for machine learning and data mining algorithms.
Apache License 2.0
10 stars 2 forks source link

Remove test code from FeatureDefinitionGraphVisualizationManager #221

Closed FRosner closed 10 years ago

FRosner commented 10 years ago

Methods like getCellByFeatureName(String name) are test helper methods and should be put into a utility class.

FRosner commented 10 years ago

The new utility class should also provide methods to check whether a cell is in the graph to avoid things like this in the feature manipulation integration test.

assertThat(_frame._featureGraph.getModel().getRootAt(0).toString()).isEqualTo(
                new GaussianFeatureEntry(new FeatureDefinition("Feature", new GaussianDistribution(
                        new FixedParameter<Double>(0d), new FixedParameter<Double>(1d))), "0", MeanIsDependent.FALSE,
                        "1.0").toString());