diff options
author | Alexander Kriegisch <Alexander@Kriegisch.name> | 2024-02-15 09:36:18 +0700 |
---|---|---|
committer | Alexander Kriegisch <Alexander@Kriegisch.name> | 2024-02-15 09:36:18 +0700 |
commit | cbdbba0ab06898cd7ab6d69e33d2db990d8b8799 (patch) | |
tree | c3b626837aecc15c53330d6afd68f94d136ff641 /testing-util/testdata/testCompareTextFiles | |
parent | 70fb6131935806f7e2041c5dfd0ac81164670875 (diff) | |
download | aspectj-cbdbba0ab06898cd7ab6d69e33d2db990d8b8799.tar.gz aspectj-cbdbba0ab06898cd7ab6d69e33d2db990d8b8799.zip |
Globally replace "http:" by "https:" in non-XML files
Maybe, the XML files and Maven wrapper files will follow. First, let us
find out if this breaks the build, maybe some tests are asserting on
"http:". But there, the replacement would also have taken place, so
probably it just works.
Signed-off-by: Alexander Kriegisch <Alexander@Kriegisch.name>
Diffstat (limited to 'testing-util/testdata/testCompareTextFiles')
4 files changed, 32 insertions, 32 deletions
diff --git a/testing-util/testdata/testCompareTextFiles/differentFile/actual/TestUtilTest.java b/testing-util/testdata/testCompareTextFiles/differentFile/actual/TestUtilTest.java index bb8d92904..875796f7f 100644 --- a/testing-util/testdata/testCompareTextFiles/differentFile/actual/TestUtilTest.java +++ b/testing-util/testdata/testCompareTextFiles/differentFile/actual/TestUtilTest.java @@ -1,12 +1,12 @@ /* -*- Mode: Java; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- * * This file is part of the compiler and core tools for the AspectJ(tm) - * programming language; see http://aspectj.org + * programming language; see https://aspectj.org * * The contents of this file are subject to the Mozilla Public License * Version 1.1 (the "License"); you may not use this file except in * compliance with the License. You may obtain a copy of the License at - * either http://www.mozilla.org/MPL/ or http://aspectj.org/MPL/. + * either https://www.mozilla.org/MPL/ or https://aspectj.org/MPL/. * * Software distributed under the License is distributed on an "AS IS" basis, * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License @@ -34,20 +34,20 @@ import java.io.IOException; import junit.framework.TestCase; /** - * + * */ public class TestUtilTest extends TestCase { public TestUtilTest(String name) { super(name); } - + public void testFileCompareNonClass() throws IOException { MessageHandler holder = new MessageHandler(); File thisFile = new File("testsrc/org/aspectj/testing/util/TestUtilTest.java"); //File thisFile = new File("src/testing-util.lst"); assertTrue(TestUtil.sameFiles(holder, thisFile, thisFile)); - + File tempFile = File.createTempFile("TestUtilTest", ".tmp"); FileUtil.copyFile(thisFile, tempFile); long len = tempFile.length(); @@ -57,7 +57,7 @@ public class TestUtilTest extends TestCase { assertTrue(TestUtil.sameFiles(holder, tempFile, thisFile)); try { String path = thisFile.getName(); - File basedir = tempFile.getParentFile(); + File basedir = tempFile.getParentFile(); File renamed = new File(basedir, path); if (!tempFile.renameTo(renamed)) { MessageUtil.warn(holder, "unable to rename " + tempFile + " to " + renamed); @@ -81,7 +81,7 @@ public class TestUtilTest extends TestCase { File classBase = new File("testdata/testCompareClassFiles"); String path = "org/aspectj/testing/util/TestCompareClassFile.class"; File classFile = new File(classBase, path); - + try { assertTrue(TestUtil.sameFiles(holder, classFile, classFile)); assertTrue(TestUtil.sameFiles(holder, classBase, classBase, path)); @@ -91,5 +91,5 @@ public class TestUtilTest extends TestCase { } } } - + } diff --git a/testing-util/testdata/testCompareTextFiles/differentFile/expected/TestUtilTest.java b/testing-util/testdata/testCompareTextFiles/differentFile/expected/TestUtilTest.java index fb87e8ad9..e6ed9d060 100644 --- a/testing-util/testdata/testCompareTextFiles/differentFile/expected/TestUtilTest.java +++ b/testing-util/testdata/testCompareTextFiles/differentFile/expected/TestUtilTest.java @@ -1,12 +1,12 @@ /* -*- Mode: Java; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- * * This file is part of the compiler and core tools for the AspectJ(tm) - * programming language; see http://aspectj.org + * programming language; see https://aspectj.org * * The contents of this file are subject to the Mozilla Public License * Version 1.1 (the "License"); you may not use this file except in * compliance with the License. You may obtain a copy of the License at - * either http://www.mozilla.org/MPL/ or http://aspectj.org/MPL/. + * either https://www.mozilla.org/MPL/ or https://aspectj.org/MPL/. * * Software distributed under the License is distributed on an "AS IS" basis, * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License @@ -34,20 +34,20 @@ import java.io.IOException; import junit.framework.TestCase; /** - * + * */ public class TestUtilTest extends TestCase { public TestUtilTest(String name) { super(name); } - + public void testFileCompareNonClass() throws IOException { MessageHandler holder = new MessageHandler(); File thisFile = new File("testsrc/org/aspectj/testing/util/TestUtilTest.java"); //File thisFile = new File("src/testing-util.lst"); assertTrue(TestUtil.sameFiles(holder, thisFile, thisFile)); - + File tempFile = File.createTempFile("TestUtilTest", ".tmp"); FileUtil.copyFile(thisFile, tempFile); long len = tempFile.length(); @@ -57,7 +57,7 @@ public class TestUtilTest extends TestCase { assertTrue(TestUtil.sameFiles(holder, tempFile, thisFile)); try { String path = thisFile.getName(); - File basedir = tempFile.getParentFile(); + File basedir = tempFile.getParentFile(); File renamed = new File(basedir, path); if (!tempFile.renameTo(renamed)) { MessageUtil.warn(holder, "unable to rename " + tempFile + " to " + renamed); @@ -80,7 +80,7 @@ public class TestUtilTest extends TestCase { File classBase = new File("testdata/testCompareClassFiles"); String path = "org/aspectj/testing/util/TestCompareClassFile.class"; File classFile = new File(classBase, path); - + try { assertTrue(TestUtil.sameFiles(holder, classFile, classFile)); assertTrue(TestUtil.sameFiles(holder, classBase, classBase, path)); @@ -90,5 +90,5 @@ public class TestUtilTest extends TestCase { } } } - + } diff --git a/testing-util/testdata/testCompareTextFiles/sameFile/actual/TestUtilTest.java b/testing-util/testdata/testCompareTextFiles/sameFile/actual/TestUtilTest.java index fb87e8ad9..e6ed9d060 100644 --- a/testing-util/testdata/testCompareTextFiles/sameFile/actual/TestUtilTest.java +++ b/testing-util/testdata/testCompareTextFiles/sameFile/actual/TestUtilTest.java @@ -1,12 +1,12 @@ /* -*- Mode: Java; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- * * This file is part of the compiler and core tools for the AspectJ(tm) - * programming language; see http://aspectj.org + * programming language; see https://aspectj.org * * The contents of this file are subject to the Mozilla Public License * Version 1.1 (the "License"); you may not use this file except in * compliance with the License. You may obtain a copy of the License at - * either http://www.mozilla.org/MPL/ or http://aspectj.org/MPL/. + * either https://www.mozilla.org/MPL/ or https://aspectj.org/MPL/. * * Software distributed under the License is distributed on an "AS IS" basis, * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License @@ -34,20 +34,20 @@ import java.io.IOException; import junit.framework.TestCase; /** - * + * */ public class TestUtilTest extends TestCase { public TestUtilTest(String name) { super(name); } - + public void testFileCompareNonClass() throws IOException { MessageHandler holder = new MessageHandler(); File thisFile = new File("testsrc/org/aspectj/testing/util/TestUtilTest.java"); //File thisFile = new File("src/testing-util.lst"); assertTrue(TestUtil.sameFiles(holder, thisFile, thisFile)); - + File tempFile = File.createTempFile("TestUtilTest", ".tmp"); FileUtil.copyFile(thisFile, tempFile); long len = tempFile.length(); @@ -57,7 +57,7 @@ public class TestUtilTest extends TestCase { assertTrue(TestUtil.sameFiles(holder, tempFile, thisFile)); try { String path = thisFile.getName(); - File basedir = tempFile.getParentFile(); + File basedir = tempFile.getParentFile(); File renamed = new File(basedir, path); if (!tempFile.renameTo(renamed)) { MessageUtil.warn(holder, "unable to rename " + tempFile + " to " + renamed); @@ -80,7 +80,7 @@ public class TestUtilTest extends TestCase { File classBase = new File("testdata/testCompareClassFiles"); String path = "org/aspectj/testing/util/TestCompareClassFile.class"; File classFile = new File(classBase, path); - + try { assertTrue(TestUtil.sameFiles(holder, classFile, classFile)); assertTrue(TestUtil.sameFiles(holder, classBase, classBase, path)); @@ -90,5 +90,5 @@ public class TestUtilTest extends TestCase { } } } - + } diff --git a/testing-util/testdata/testCompareTextFiles/sameFile/expected/TestUtilTest.java b/testing-util/testdata/testCompareTextFiles/sameFile/expected/TestUtilTest.java index fb87e8ad9..e6ed9d060 100644 --- a/testing-util/testdata/testCompareTextFiles/sameFile/expected/TestUtilTest.java +++ b/testing-util/testdata/testCompareTextFiles/sameFile/expected/TestUtilTest.java @@ -1,12 +1,12 @@ /* -*- Mode: Java; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- * * This file is part of the compiler and core tools for the AspectJ(tm) - * programming language; see http://aspectj.org + * programming language; see https://aspectj.org * * The contents of this file are subject to the Mozilla Public License * Version 1.1 (the "License"); you may not use this file except in * compliance with the License. You may obtain a copy of the License at - * either http://www.mozilla.org/MPL/ or http://aspectj.org/MPL/. + * either https://www.mozilla.org/MPL/ or https://aspectj.org/MPL/. * * Software distributed under the License is distributed on an "AS IS" basis, * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License @@ -34,20 +34,20 @@ import java.io.IOException; import junit.framework.TestCase; /** - * + * */ public class TestUtilTest extends TestCase { public TestUtilTest(String name) { super(name); } - + public void testFileCompareNonClass() throws IOException { MessageHandler holder = new MessageHandler(); File thisFile = new File("testsrc/org/aspectj/testing/util/TestUtilTest.java"); //File thisFile = new File("src/testing-util.lst"); assertTrue(TestUtil.sameFiles(holder, thisFile, thisFile)); - + File tempFile = File.createTempFile("TestUtilTest", ".tmp"); FileUtil.copyFile(thisFile, tempFile); long len = tempFile.length(); @@ -57,7 +57,7 @@ public class TestUtilTest extends TestCase { assertTrue(TestUtil.sameFiles(holder, tempFile, thisFile)); try { String path = thisFile.getName(); - File basedir = tempFile.getParentFile(); + File basedir = tempFile.getParentFile(); File renamed = new File(basedir, path); if (!tempFile.renameTo(renamed)) { MessageUtil.warn(holder, "unable to rename " + tempFile + " to " + renamed); @@ -80,7 +80,7 @@ public class TestUtilTest extends TestCase { File classBase = new File("testdata/testCompareClassFiles"); String path = "org/aspectj/testing/util/TestCompareClassFile.class"; File classFile = new File(classBase, path); - + try { assertTrue(TestUtil.sameFiles(holder, classFile, classFile)); assertTrue(TestUtil.sameFiles(holder, classBase, classBase, path)); @@ -90,5 +90,5 @@ public class TestUtilTest extends TestCase { } } } - + } |