From d630306bbe2b3582ba5f744dd1269c2a7596b7d8 Mon Sep 17 00:00:00 2001 From: tsantalis Date: Sat, 28 Dec 2024 10:19:40 -0500 Subject: [PATCH] Update refactoring oracle --- .../org/refactoringminer/test/TestAllRefactorings.java | 2 +- src/test/resources/oracle/data.json | 7 +++++++ src/test/resources/oracle/expected.txt | 2 +- 3 files changed, 9 insertions(+), 2 deletions(-) diff --git a/src/test/java/org/refactoringminer/test/TestAllRefactorings.java b/src/test/java/org/refactoringminer/test/TestAllRefactorings.java index d821de9ae4..3b273d93db 100644 --- a/src/test/java/org/refactoringminer/test/TestAllRefactorings.java +++ b/src/test/java/org/refactoringminer/test/TestAllRefactorings.java @@ -17,6 +17,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(12371, 20, 233); + test.assertExpectationsWithGitHubAPI(12372, 20, 233); } } diff --git a/src/test/resources/oracle/data.json b/src/test/resources/oracle/data.json index 0d0ed277dc..cb0de059c7 100644 --- a/src/test/resources/oracle/data.json +++ b/src/test/resources/oracle/data.json @@ -22877,6 +22877,13 @@ "validation": "TP", "detectionTools": "RefactoringMiner", "validators": null + }, { + "type": "Extract Variable", + "description": "Extract Variable fileName : String in method private isSafeFile(uploadFile UploadFile) : boolean from class com.jfinal.upload.MultipartRequest", + "comment": null, + "validation": "TP", + "detectionTools": "RefactoringMiner", + "validators": null }], "refDiffExecutionTime": 1822 }, { diff --git a/src/test/resources/oracle/expected.txt b/src/test/resources/oracle/expected.txt index 169dbac3a4..fd45038a94 100644 --- a/src/test/resources/oracle/expected.txt +++ b/src/test/resources/oracle/expected.txt @@ -277,7 +277,7 @@ ed966510ccf8441115614e2258aea61df0ea55f5, 7, 0, 0 0ba343846f21649e29ffc600f30a7f3e463fb24c, 15, 0, 0 b0938501f1014cf663e33b44ed5bb9b24d19a358, 4, 0, 0 b7cba6a700d8c5e456cdeffe9c5bf54563eab7d3, 2, 0, 0 -881baed894540031bd55e402933bcad28b74ca88, 266, 0, 13 +881baed894540031bd55e402933bcad28b74ca88, 267, 0, 13 ab1d1dd78fe53edb50c4ede447e4ac5a55ee2ac9, 1, 0, 0 14a7dd79148f9306dcd2f748b56fd6550e9406ab, 4, 0, 0 5e08a9e8e93a2f117b5fbec9c6d54500d8e99a4d, 1, 0, 0