From 7e3d8f549811e962391c2c584ea4b47bf7ab58dc Mon Sep 17 00:00:00 2001 From: danglotb Date: Thu, 5 Mar 2020 10:23:29 +0100 Subject: [PATCH] test: update expected values according to the new version of spoon --- .../prettifier/context2name/Context2NameTest.java | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/dspot-prettifier/src/test/java/eu/stamp_project/prettifier/context2name/Context2NameTest.java b/dspot-prettifier/src/test/java/eu/stamp_project/prettifier/context2name/Context2NameTest.java index 9801bcbea..d063c1279 100644 --- a/dspot-prettifier/src/test/java/eu/stamp_project/prettifier/context2name/Context2NameTest.java +++ b/dspot-prettifier/src/test/java/eu/stamp_project/prettifier/context2name/Context2NameTest.java @@ -80,13 +80,13 @@ public void testContext2Name() { " String mess = \"mess-print\";" + AmplificationHelper.LINE_SEPARATOR + " System.out.print(mess);" + AmplificationHelper.LINE_SEPARATOR + " String local = \"local\" + id;" + AmplificationHelper.LINE_SEPARATOR + - " System.out.print(((this.global) + local));" + AmplificationHelper.LINE_SEPARATOR + + " System.out.print(global + local);" + AmplificationHelper.LINE_SEPARATOR + "}", methodListBeforeC2N.get(0).toString()); assertEquals("private void mess(int name) {" + AmplificationHelper.LINE_SEPARATOR + " String mess = \"mess-print\";" + AmplificationHelper.LINE_SEPARATOR + " System.out.print(mess);" + AmplificationHelper.LINE_SEPARATOR + " String ex = \"local\" + name;" + AmplificationHelper.LINE_SEPARATOR + - " System.out.print(((this.global) + ex));" + AmplificationHelper.LINE_SEPARATOR + + " System.out.print(global + ex);" + AmplificationHelper.LINE_SEPARATOR + "}", methodListAfterC2N.get(0).toString()); // the second method AKA "test" @@ -96,10 +96,10 @@ public void testContext2Name() { " outer : for (int i = 0; i < 10; i++) {" + AmplificationHelper.LINE_SEPARATOR + " inner : for (int j = 10; j > 0; j--) {" + AmplificationHelper.LINE_SEPARATOR + " if (i != j) {" + AmplificationHelper.LINE_SEPARATOR + - " System.out.print((((\"break as i\" + i) + \"j\") + j));" + AmplificationHelper.LINE_SEPARATOR + + " System.out.print(((\"break as i\" + i) + \"j\") + j);" + AmplificationHelper.LINE_SEPARATOR + " break outer;" + AmplificationHelper.LINE_SEPARATOR + " } else {" + AmplificationHelper.LINE_SEPARATOR + - " System.out.print((((\"continue as i\" + i) + \"j\") + j));" + AmplificationHelper.LINE_SEPARATOR + + " System.out.print(((\"continue as i\" + i) + \"j\") + j);" + AmplificationHelper.LINE_SEPARATOR + " continue inner;" + AmplificationHelper.LINE_SEPARATOR + " }" + AmplificationHelper.LINE_SEPARATOR + " }" + AmplificationHelper.LINE_SEPARATOR + @@ -111,10 +111,10 @@ public void testContext2Name() { " tc : for (int c = 0; c < 10; c++) {" + AmplificationHelper.LINE_SEPARATOR + " result : for (int gridBagConstraints = 10; gridBagConstraints > 0; gridBagConstraints--) {" + AmplificationHelper.LINE_SEPARATOR + " if (c != gridBagConstraints) {" + AmplificationHelper.LINE_SEPARATOR + - " System.out.print((((\"break as i\" + c) + \"j\") + gridBagConstraints));" + AmplificationHelper.LINE_SEPARATOR + + " System.out.print(((\"break as i\" + c) + \"j\") + gridBagConstraints);" + AmplificationHelper.LINE_SEPARATOR + " break tc;" + AmplificationHelper.LINE_SEPARATOR + " } else {" + AmplificationHelper.LINE_SEPARATOR + - " System.out.print((((\"continue as i\" + c) + \"j\") + gridBagConstraints));" + AmplificationHelper.LINE_SEPARATOR + + " System.out.print(((\"continue as i\" + c) + \"j\") + gridBagConstraints);" + AmplificationHelper.LINE_SEPARATOR + " continue result;" + AmplificationHelper.LINE_SEPARATOR + " }" + AmplificationHelper.LINE_SEPARATOR + " }" + AmplificationHelper.LINE_SEPARATOR +