org.refactoringminer.test.TestAllRefactorings Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of refactoring-miner Show documentation
Show all versions of refactoring-miner Show documentation
RefactoringMiner is a library/API written in Java that can detect refactorings applied in the history of a Java project.
package org.refactoringminer.test;
import org.refactoringminer.rm1.GitHistoryRefactoringMinerImpl;
import org.refactoringminer.test.RefactoringPopulator.Refactorings;
import org.refactoringminer.test.RefactoringPopulator.Systems;
import org.junit.Test;
public class TestAllRefactorings {
@Test
public void testAllRefactorings() throws Exception {
TestBuilder test = new TestBuilder(new GitHistoryRefactoringMinerImpl(), "tmp1", Refactorings.All.getValue());
RefactoringPopulator.feedRefactoringsInstances(Refactorings.All.getValue(), Systems.FSE.getValue(), test);
//Refactorings type = Refactorings.ModifyParameterAnnotation;
//TestBuilder test = new TestBuilder(new GitHistoryRefactoringMinerImpl(), "tmp1", type.getValue());
//RefactoringPopulator.feedRefactoringsInstances(type.getValue(), Systems.FSE.getValue(), test);
//https://github.com/google/guava/commit/bbc26e180ba06dc45daa1aa6a3d56fd14594bb0e
/*test.project("https://github.com/google/guava.git", "master")
.atCommit("bbc26e180ba06dc45daa1aa6a3d56fd14594bb0e")
.containsOnly();*/
//https://github.com/apache/hadoop/commit/6ade9e6ce6019d2d347cbda6b968bf6950403c12
//https://github.com/deeplearning4j/deeplearning4j/commit/91cdfa1ffd937a4cb01cdc0052874ef7831955e2
//https://github.com/jodavimehran/refactoring-samples/commit/27dd70a2c8a133cb3ba01ed89eea2383bd0d5cc8
//https://github.com/jodavimehran/refactoring-samples/commit/162238e424df62f884761b40e7ede73c49a33956
//https://github.com/jodavimehran/refactoring-samples/commit/ff9ab12ae6398832c73dd727ce770c13a30d3e77
/*test.project("https://github.com/jodavimehran/refactoring-samples.git", "master")
.atCommit("27dd70a2c8a133cb3ba01ed89eea2383bd0d5cc8")
.containsOnly();*/
//https://github.com/hazelcast/hazelcast/commit/30c4ae09745d6062077925a54f27205b7401d8df
/*test.project("https://github.com/hazelcast/hazelcast.git", "master")
.atCommit("30c4ae09745d6062077925a54f27205b7401d8df")
.containsOnly();*/
//https://github.com/apache/giraph/commit/03ade425dd5a65d3a713d5e7d85aa7605956fbd2
/*test.project("https://github.com/apache/giraph.git", "master")
.atCommit("03ade425dd5a65d3a713d5e7d85aa7605956fbd2")
.containsOnly();*/
//https://github.com/MinaSelim/SOEN390/commit/570c0624d4d9743502e87febc7cb5ab428f0c393
/*test.project("https://github.com/MinaSelim/SOEN390.git", "master")
.atCommit("9884347034fbd215ff9ddf131233354603f5b9c5")
.containsOnly();*/
//https://github.com/glyptodon/guacamole-client/commit/de30229d1682a610e1e976f7e38c3988b2af7aa0
/*test.project("https://github.com/glyptodon/guacamole-client.git", "master")
.atCommit("de30229d1682a610e1e976f7e38c3988b2af7aa0")
.containsOnly();*/
//https://github.com/eclipse/jgit/9d2447063de3bdad6f68aa912d31f3934f1cebc5
//orbit/orbit/commit/5ad20409fa22ad18d85763156322d25ef6b3932d
/*test.project("https://github.com/orbit/orbit.git", "master")
.atCommit("5ad20409fa22ad18d85763156322d25ef6b3932d")
.containsOnly();*/
test.assertExpectations();
}
}