From b1b1c6c6d1c9373632b826bde62c446a95cd4c3b Mon Sep 17 00:00:00 2001 From: tsantalis Date: Sun, 22 Sep 2024 14:43:56 -0400 Subject: [PATCH] Oracle update --- .../refactoringminer/test/TestAllRefactorings.java | 2 +- src/test/resources/oracle/data.json | 14 -------------- src/test/resources/oracle/expected.txt | 2 +- 3 files changed, 2 insertions(+), 16 deletions(-) diff --git a/src/test/java/org/refactoringminer/test/TestAllRefactorings.java b/src/test/java/org/refactoringminer/test/TestAllRefactorings.java index 8b8ca90c0..b2ea0f2fe 100644 --- a/src/test/java/org/refactoringminer/test/TestAllRefactorings.java +++ b/src/test/java/org/refactoringminer/test/TestAllRefactorings.java @@ -15,6 +15,6 @@ public void testAllRefactorings() throws Exception { GitHistoryRefactoringMinerImpl detector = new GitHistoryRefactoringMinerImpl(); TestBuilder test = new TestBuilder(detector, REPOS, Refactorings.All.getValue()); RefactoringPopulator.feedRefactoringsInstances(Refactorings.All.getValue(), Systems.FSE.getValue(), test); - test.assertExpectationsWithGitHubAPI(12267, 20, 233); + test.assertExpectationsWithGitHubAPI(12265, 20, 233); } } diff --git a/src/test/resources/oracle/data.json b/src/test/resources/oracle/data.json index 7f7ac964d..025c487fb 100644 --- a/src/test/resources/oracle/data.json +++ b/src/test/resources/oracle/data.json @@ -72951,13 +72951,6 @@ "validation": "FP", "detectionTools": "GumTreeDiff", "validators": null - }, { - "type": "Extract Method", - "description": "Extract Method private changeLanguageValue(newValue String) : void extracted from public onCreate(savedInstanceState Bundle) : void in class org.wordpress.android.ui.prefs.SiteSettingsFragment", - "comment": "

Nested Extract Method
public onCreate(savedInstanceState Bundle) : void --> private fetchRemoteData() : void --> private handleResponseToGeneralSettingsRequest(response JSONObject) : void --> private changeLanguageValue(newValue String) : void

", - "validation": "TP", - "detectionTools": "RefactoringMiner", - "validators": "Nikos" }, { "type": "Extract Method", "description": "Extract Method private changeEditTextPreferenceValue(pref EditTextPreference, newValue String) : void extracted from public onCreate(savedInstanceState Bundle) : void in class org.wordpress.android.ui.prefs.SiteSettingsFragment", @@ -72972,13 +72965,6 @@ "validation": "TP", "detectionTools": "RefactoringMiner", "validators": "Nikos" - }, { - "type": "Parameterize Attribute", - "description": "Parameterize Attribute mRemoteLanguage : String to newValue : String in method private changeLanguageValue(newValue String) : void from class org.wordpress.android.ui.prefs.SiteSettingsFragment", - "comment": null, - "validation": "TP", - "detectionTools": "RefactoringMiner", - "validators": null }], "refDiffExecutionTime": 1235 }, { diff --git a/src/test/resources/oracle/expected.txt b/src/test/resources/oracle/expected.txt index cb0d67619..494c56159 100644 --- a/src/test/resources/oracle/expected.txt +++ b/src/test/resources/oracle/expected.txt @@ -541,7 +541,7 @@ abba5d83602c7ae23901bd579ba9fbb7dc36adc0, 27, 0, 4 4bfe164cc8b4556b98df18098b162e0a84038b32, 1, 0, 0 ab298886b59f4ad0235cd6d5764854189eb59eb6, 11, 0, 0 cf1efb6d27a4037cdbe5a780afa6053859a60d4a, 3, 0, 0 -1b21ba4bcea986988d4bbd578e3bb9a20ec69606, 12, 0, 1 +1b21ba4bcea986988d4bbd578e3bb9a20ec69606, 10, 0, 1 c53c6f45988db869d56abe3b1d831ff775f4fa73, 17, 0, 0 446e2537895c15b404a74107069a12f3fc404b15, 44, 2, 0 c30deabcaed4726bce4371d76257db63f2eba87c, 57, 0, 0