diff --git a/botsing-reproduction/src/test/java/eu/stamp/botsing/SimpleCrashReproductionTest.java b/botsing-reproduction/src/test/java/eu/stamp/botsing/SimpleCrashReproductionTest.java deleted file mode 100644 index 126ba2f..0000000 --- a/botsing-reproduction/src/test/java/eu/stamp/botsing/SimpleCrashReproductionTest.java +++ /dev/null @@ -1,74 +0,0 @@ -package eu.stamp.botsing; - -/*- - * #%L - * botsing-reproduction - * %% - * Copyright (C) 2017 - 2018 eu.stamp-project - * %% - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - * #L% - */ - -import ch.qos.logback.classic.Level; -import org.junit.Ignore; -import org.junit.Test; - -import java.io.File; -import java.nio.file.Path; -import java.nio.file.Paths; - -@Ignore -public class SimpleCrashReproductionTest { - - public static int target_frame_level = 3; - - public static String user_dir = System.getProperty("user.dir"); - public static String test_dir = Paths.get(user_dir,"src","test","java","eu","stamp","botsing").toString(); - public static String log_dir = Paths.get(test_dir, "sample.log").toString(); - public static String bin_path = Paths.get(test_dir, "sample_dep").toString(); - private static String separator = System.getProperty("path.separator"); - - @Test - public void runtest(){ - setLoggingLevel(Level.INFO); - - Botsing botsing = new Botsing(); - String[] prop = { - "-Dcrash_log="+log_dir, - "-Dtarget_frame="+target_frame_level, - "-projectCP", - getListOfDeps(), - }; - botsing.parseCommandLine(prop); - } - - public static void setLoggingLevel(ch.qos.logback.classic.Level level) { - ch.qos.logback.classic.Logger root = (ch.qos.logback.classic.Logger) org.slf4j.LoggerFactory.getLogger(ch.qos.logback.classic.Logger.ROOT_LOGGER_NAME); - root.setLevel(level); - } - - public static String getListOfDeps(){ - String dependencies = ""; - File depFolder = new File(bin_path); - File[] listOfFilesInSourceFolder = depFolder.listFiles(); - for(int i = 0; i < listOfFilesInSourceFolder.length; i++) { - if (listOfFilesInSourceFolder[i].getName().charAt(0) != '.') { - Path depPath = Paths.get(depFolder.getAbsolutePath(), listOfFilesInSourceFolder[i].getName()); - dependencies += (depPath.toString() + separator); - } - } - return dependencies; - } - -} diff --git a/botsing-reproduction/src/test/java/eu/stamp/botsing/sample.log b/botsing-reproduction/src/test/java/eu/stamp/botsing/sample.log deleted file mode 100755 index 3cb9cb4..0000000 --- a/botsing-reproduction/src/test/java/eu/stamp/botsing/sample.log +++ /dev/null @@ -1,5 +0,0 @@ -java.lang.ClassCastException: java.base/java.lang.Boolean cannot be cast to java.base/java.lang.String - at eu.stamp.uc.atos.poc.evocrash.MyObject.badIdea(MyObject.java:11) - at eu.stamp.uc.atos.poc.evocrash.MyObject.callBadIdea(MyObject.java:17) - at eu.stamp.uc.atos.poc.evocrash.MyObject.unnecessaryMethod(MyObject.java:21) - at eu.stamp.uc.atos.poc.evocrash.DoIt.main(DoIt.java:6) diff --git a/botsing-reproduction/src/test/java/eu/stamp/botsing/sample_dep/atos.jar b/botsing-reproduction/src/test/java/eu/stamp/botsing/sample_dep/atos.jar deleted file mode 100755 index fc88da0..0000000 Binary files a/botsing-reproduction/src/test/java/eu/stamp/botsing/sample_dep/atos.jar and /dev/null differ