Search in sources :

Example 6 with ChangeProperties

use of de.dagere.peass.analysis.properties.ChangeProperties in project peass by DaGeRe.

the class GuessClassificationsByRules method call.

@Override
public Void call() throws Exception {
    RepoFolders repos = new RepoFolders();
    File propertyFile = new File(methodFileFolder.getParentFile(), project + ".json");
    File classificationFile = new File(repos.getClassificationFolder(), project + ".json");
    Classification manual = Constants.OBJECTMAPPER.readValue(classificationFile, Classification.class);
    final VersionChangeProperties changes = Constants.OBJECTMAPPER.readValue(propertyFile, VersionChangeProperties.class);
    for (Entry<String, ChangeProperties> version : changes.getVersions().entrySet()) {
        guessVersion(manual, version);
    }
    System.out.println("Correct: " + correct + " Wrong " + wrong + " All: " + all);
    return null;
}
Also used : Classification(de.dagere.peass.analysis.groups.Classification) ChangeProperties(de.dagere.peass.analysis.properties.ChangeProperties) VersionChangeProperties(de.dagere.peass.analysis.properties.VersionChangeProperties) VersionChangeProperties(de.dagere.peass.analysis.properties.VersionChangeProperties) File(java.io.File) RepoFolders(de.dagere.peass.analysis.all.RepoFolders)

Aggregations

ChangeProperties (de.dagere.peass.analysis.properties.ChangeProperties)6 VersionChangeProperties (de.dagere.peass.analysis.properties.VersionChangeProperties)6 ChangeProperty (de.dagere.peass.analysis.properties.ChangeProperty)5 File (java.io.File)5 LinkedList (java.util.LinkedList)4 List (java.util.List)4 RepoFolders (de.dagere.peass.analysis.all.RepoFolders)2 Change (de.dagere.peass.analysis.changes.Change)2 ProjectChanges (de.dagere.peass.analysis.changes.ProjectChanges)2 Classification (de.dagere.peass.analysis.groups.Classification)2 GuessDecider (de.dagere.peass.analysis.guessing.GuessDecider)2 ChangedEntity (de.dagere.peass.dependency.analysis.data.ChangedEntity)2 Changes (de.dagere.peass.analysis.changes.Changes)1 TestcaseClass (de.dagere.peass.analysis.groups.TestcaseClass)1 VersionClass (de.dagere.peass.analysis.groups.VersionClass)1 PropertyReadHelper (de.dagere.peass.analysis.properties.PropertyReadHelper)1 ExecutionConfig (de.dagere.peass.config.ExecutionConfig)1 TestCase (de.dagere.peass.dependency.analysis.data.TestCase)1 TestSet (de.dagere.peass.dependency.analysis.data.TestSet)1 ExecutionData (de.dagere.peass.dependency.persistence.ExecutionData)1