Added phase 1 solution
This commit is contained in:
parent
585aa19e0c
commit
eab1d12870
@ -0,0 +1,172 @@
|
|||||||
|
\documentclass[a4paper]{scrreprt}
|
||||||
|
\usepackage[left=4cm,bottom=3cm,top=3cm,right=4cm,nohead,nofoot]{geometry}
|
||||||
|
\usepackage{graphicx}
|
||||||
|
\usepackage{tabularx}
|
||||||
|
\usepackage{listings}
|
||||||
|
\usepackage{enumitem}
|
||||||
|
\usepackage{subcaption}
|
||||||
|
|
||||||
|
\usepackage{pgf}
|
||||||
|
\usepackage{tikz}
|
||||||
|
\usetikzlibrary{arrows,automata}
|
||||||
|
|
||||||
|
\usepackage{xparse}
|
||||||
|
\usepackage{multirow}
|
||||||
|
|
||||||
|
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|
||||||
|
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|
||||||
|
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|
||||||
|
\setlength{\textfloatsep}{16pt}
|
||||||
|
|
||||||
|
\renewcommand{\labelenumi}{\alph{enumi})}
|
||||||
|
\renewcommand{\labelenumii}{\arabic{enumii}) }
|
||||||
|
|
||||||
|
\newcommand{\baseinfo}[5]{
|
||||||
|
\begin{center}
|
||||||
|
\begin{tabular}{p{15cm}r}
|
||||||
|
\vspace{-4.5pt}{ \Large \bfseries #1} & \multirow{2}{*}{} \\[0.4cm]
|
||||||
|
#2 & \\[0.5cm]
|
||||||
|
\end{tabular}
|
||||||
|
\end{center}
|
||||||
|
\vspace{-18pt}\hrule\vspace{6pt}
|
||||||
|
\begin{tabular}{ll}
|
||||||
|
\textbf{Name:} & #4\\
|
||||||
|
\textbf{Group:} & #5\\
|
||||||
|
\end{tabular}
|
||||||
|
\vspace{4pt}\hrule\vspace{2pt}
|
||||||
|
\footnotesize \textbf{Software Testing} \hfil - \hfil Summer 2022 \hfil - \hfil #3 \hfil - \hfil Sibylle Schupp / Sascha Lehmann \hfil \\
|
||||||
|
}
|
||||||
|
|
||||||
|
\newcounter{question}
|
||||||
|
\NewDocumentEnvironment{question}{m o}{%
|
||||||
|
\addtocounter{question}{1}%
|
||||||
|
\paragraph{\textcolor{red}{Task~\arabic{question}} - #1\hfill\IfNoValueTF{#2}{}{[#2 P]}}
|
||||||
|
\leavevmode\\%
|
||||||
|
}{%
|
||||||
|
\vskip 1em%
|
||||||
|
}
|
||||||
|
|
||||||
|
\NewDocumentEnvironment{answer}{}{%
|
||||||
|
\vspace{6pt}
|
||||||
|
\leavevmode\\
|
||||||
|
\textit{Answer:}\\[-0.25cm]
|
||||||
|
{\color{red}\rule{\textwidth}{0.4mm}}
|
||||||
|
}{%
|
||||||
|
\leavevmode\\
|
||||||
|
{\color{red}\rule{\textwidth}{0.4mm}}
|
||||||
|
}
|
||||||
|
|
||||||
|
\newcommand{\projectinfo}[5]{
|
||||||
|
\baseinfo{Project Phase #1 - Submission Sheet}{#2}{#3}{#4}{#5}
|
||||||
|
}
|
||||||
|
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|
||||||
|
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|
||||||
|
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|
||||||
|
|
||||||
|
\def\name{Michael Chen}
|
||||||
|
\def\group{Group 01 (fastjson)}
|
||||||
|
|
||||||
|
\begin{document}
|
||||||
|
\projectinfo{1}{Software Testing - Random Testing\small}{\today}{\name}{\group}
|
||||||
|
|
||||||
|
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|
||||||
|
%%% Task 1 %%%
|
||||||
|
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|
||||||
|
\begin{question}{Select your open source project}[3]
|
||||||
|
\begin{enumerate}[topsep=0pt, leftmargin=*]
|
||||||
|
\item Motivate your selection of the project in 3-5 sentences:
|
||||||
|
\begin{answer}
|
||||||
|
We set out to look for a local-only library, so we could have a simplified setup without needing any external infrastructure. FastJSON is a straightforward JSON parsing library with around 30k lines of code, and a fairly low code coverage of around 40-50\%. It’s primarily for performance-intensive uses such as on the server-side. We think it is the ideal scope for a project of our consideration.
|
||||||
|
\end{answer}
|
||||||
|
|
||||||
|
\item Document the \textbf{build}, \textbf{install}, and \textbf{run} steps for your project:
|
||||||
|
\begin{answer}
|
||||||
|
Installation was fairly easy with cloning the remote repository. Since the JSON library is self contained and has no further libraries it depends on the installation is rather trivial.
|
||||||
|
|
||||||
|
Building the project was also simple because the application is delivered with a well configured Apache Maven project file. Using IntelliJ IDEA the Maven project could be opened and built relatively quickly.
|
||||||
|
|
||||||
|
Running the project was similarly easy, because we intentionally chose a software library instead of a complex web application. Since the library is not shipped with a main function we can just execute the test suite.
|
||||||
|
\end{answer}
|
||||||
|
\end{enumerate}
|
||||||
|
\end{question}
|
||||||
|
|
||||||
|
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|
||||||
|
%%% Task 2 %%%
|
||||||
|
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|
||||||
|
\begin{question}{Answer basic questions on Random Testing / Randoop}[4]
|
||||||
|
\begin{enumerate}[topsep=0pt, leftmargin=*]
|
||||||
|
\item Answer the following questions (each in 2-3 brief sentences):
|
||||||
|
\begin{enumerate}
|
||||||
|
\item How do you define "Random Testing" in your own words?
|
||||||
|
\begin{answer}
|
||||||
|
Random Testing is a testing procedure where the system under test (SUT) is tested with randomly generated inputs without knowledge of the system's code itself (black-box testing). The test results must then be evaluated according to the system's specifications.
|
||||||
|
\end{answer}
|
||||||
|
|
||||||
|
\item In which testing situations is it used / probably preferred?
|
||||||
|
\begin{answer}
|
||||||
|
It is preferred in situations where manual checking is prone to fail due to easily overlooked lines of code. Random testing is used mostly in situations where the SUT is well specified, because the output of a system must be analyzed using the specifications to check whether a failure is present. Also for small project teams random testing might be advantageous because the developers of the software are likely biased on how they write tests and what they expect the program to do, because they wrote the software, but it might not behave as it should per specification.
|
||||||
|
\end{answer}
|
||||||
|
|
||||||
|
\item What are its most significant downsides?
|
||||||
|
\begin{answer}
|
||||||
|
\begin{itemize}
|
||||||
|
\item Failures are only detected when specific inputs trigger edge cases of the software.
|
||||||
|
\item Bugs may only be found if the test results are properly analyzed and compared to the system specifications.
|
||||||
|
\item As the name already says it is random and thus we depend on luck that we find a bug.
|
||||||
|
\end{itemize}
|
||||||
|
\end{answer}
|
||||||
|
|
||||||
|
\item How does \textit{Randoop} approach the concept of random testing?
|
||||||
|
\begin{answer}
|
||||||
|
Randoop employs contracts over the objects that the test subjects use. Specifically it checks for well-formedness on common patterns in object oriented programming, i.e. in case of object equality contracts it checks for reflective and transitive properties.
|
||||||
|
Randoop instanciates those objects using the SUT and applies the contracts to them, thereby generating test cases on the objects.
|
||||||
|
|
||||||
|
Randoop categorizes these tests as regression tests, for tests that capture the current and well-formed behaviour of the SUT and can be used to detect changes in the behaviour of the program during later development, and error-revealing tests, that are currently failing when executed.
|
||||||
|
\end{answer}
|
||||||
|
\end{enumerate}
|
||||||
|
\end{enumerate}
|
||||||
|
\end{question}
|
||||||
|
|
||||||
|
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|
||||||
|
%%% Task 3 %%%
|
||||||
|
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|
||||||
|
\begin{question}{Get started with Randoop}[3]
|
||||||
|
\begin{enumerate}[topsep=0pt, leftmargin=*]
|
||||||
|
\item Briefly explain the concepts of \textit{error-revealing tests} and \textit{regression tests}:
|
||||||
|
\begin{answer}
|
||||||
|
|
||||||
|
\end{answer}
|
||||||
|
\end{enumerate}
|
||||||
|
\end{question}
|
||||||
|
|
||||||
|
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|
||||||
|
%%% Task 4 %%%
|
||||||
|
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|
||||||
|
\begin{question}{Use Randoop for your selected project}[6]
|
||||||
|
\begin{enumerate}[topsep=0pt, leftmargin=*]
|
||||||
|
\item Provide a screenshot of your terminal that indicates your execution of the necessary step(s):
|
||||||
|
\begin{answer}
|
||||||
|
\lstinputlisting[belowskip=-0.8\baselineskip,breaklines=true,postbreak=\mbox{\textcolor{red}{$\hookrightarrow$}\space}]{randoop_invoke.sh}
|
||||||
|
\end{answer}
|
||||||
|
|
||||||
|
\item For each of both classes, pick a test from one of the generated files, and briefly describe its sequence of constructor / method calls (1-2 sentences per test):
|
||||||
|
\begin{answer}
|
||||||
|
This following file from the JSONPatch Operation subclass shows a test case where an operation is instanciated with some (arbitrary) values. The test captures that the operation is instanciated without a type (null) and it also captures that checking the operation value property repeatedly does not change its value (is without side effects).
|
||||||
|
|
||||||
|
\lstinputlisting[firstline=87,lastline=106,belowskip=-0.8\baselineskip,breaklines=true,postbreak=\mbox{\textcolor{red}{$\hookrightarrow$}\space}]{randoop/JSONPatch/RegressionTest4.java}
|
||||||
|
|
||||||
|
The following test is and error revealing test in the DefaultJSONParser class that revealed that the call to the getOwnerContext method of this specific instanciation of the parser raises a NullPointerException.
|
||||||
|
|
||||||
|
\lstinputlisting[firstline=56,lastline=64,belowskip=-0.8\baselineskip,breaklines=true,postbreak=\mbox{\textcolor{red}{$\hookrightarrow$}\space}]{randoop/JSONPath/ErrorTest0.java}
|
||||||
|
\end{answer}
|
||||||
|
|
||||||
|
\item Do the tests represent meaningful scenarios?
|
||||||
|
\begin{answer}
|
||||||
|
The first of the above tests is not a meaningful scenario because usually one does not try to instanciate an actor object without setting the field values and with such a standard data struct-like object that does not contain any functionality itself one does not expect any side-effects.
|
||||||
|
|
||||||
|
The second test however, if this is behaviour as specified or not, might be a meaningful scenario. Usually a simple member function call should not raise a NullPointerException when called on a non-null object and internal exceptions should be caught and handled accordingly.
|
||||||
|
\end{answer}
|
||||||
|
\end{enumerate}
|
||||||
|
\end{question}
|
||||||
|
|
||||||
|
\end{document}
|
@ -0,0 +1,8 @@
|
|||||||
|
import org.junit.runner.RunWith;
|
||||||
|
import org.junit.runners.Suite;
|
||||||
|
|
||||||
|
@RunWith(Suite.class)
|
||||||
|
@Suite.SuiteClasses({ ErrorTest0.class })
|
||||||
|
public class ErrorTest {
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,80 @@
|
|||||||
|
import org.junit.FixMethodOrder;
|
||||||
|
import org.junit.Test;
|
||||||
|
import org.junit.runners.MethodSorters;
|
||||||
|
|
||||||
|
@FixMethodOrder(MethodSorters.NAME_ASCENDING)
|
||||||
|
public class ErrorTest0 {
|
||||||
|
|
||||||
|
public static boolean debug = false;
|
||||||
|
|
||||||
|
@Test
|
||||||
|
public void test1() throws Throwable {
|
||||||
|
if (debug)
|
||||||
|
System.out.format("%n%s%n", "ErrorTest0.test1");
|
||||||
|
// during test generation this statement threw an exception of type java.lang.NullPointerException in error
|
||||||
|
java.lang.Object obj2 = com.alibaba.fastjson.JSONPatch.apply((java.lang.Object) "hi!", "");
|
||||||
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
public void test2() throws Throwable {
|
||||||
|
if (debug)
|
||||||
|
System.out.format("%n%s%n", "ErrorTest0.test2");
|
||||||
|
// during test generation this statement threw an exception of type java.lang.NullPointerException in error
|
||||||
|
java.lang.String str2 = com.alibaba.fastjson.JSONPatch.apply("4", "");
|
||||||
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
public void test3() throws Throwable {
|
||||||
|
if (debug)
|
||||||
|
System.out.format("%n%s%n", "ErrorTest0.test3");
|
||||||
|
// during test generation this statement threw an exception of type java.lang.NullPointerException in error
|
||||||
|
java.lang.Object obj2 = com.alibaba.fastjson.JSONPatch.apply((java.lang.Object) "\uffff\uff64\uff0a\uff0a\uffff\uff64", "");
|
||||||
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
public void test4() throws Throwable {
|
||||||
|
if (debug)
|
||||||
|
System.out.format("%n%s%n", "ErrorTest0.test4");
|
||||||
|
// during test generation this statement threw an exception of type java.lang.NullPointerException in error
|
||||||
|
java.lang.String str2 = com.alibaba.fastjson.JSONPatch.apply("-1", "");
|
||||||
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
public void test5() throws Throwable {
|
||||||
|
if (debug)
|
||||||
|
System.out.format("%n%s%n", "ErrorTest0.test5");
|
||||||
|
// during test generation this statement threw an exception of type java.lang.NullPointerException in error
|
||||||
|
java.lang.String str2 = com.alibaba.fastjson.JSONPatch.apply("100", "");
|
||||||
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
public void test6() throws Throwable {
|
||||||
|
if (debug)
|
||||||
|
System.out.format("%n%s%n", "ErrorTest0.test6");
|
||||||
|
com.alibaba.fastjson.JSONPatch.Operation operation0 = new com.alibaba.fastjson.JSONPatch.Operation();
|
||||||
|
operation0.value = (-1.0d);
|
||||||
|
operation0.value = (-1L);
|
||||||
|
operation0.from = "100.0";
|
||||||
|
operation0.path = "4444 ";
|
||||||
|
java.lang.String str9 = operation0.from;
|
||||||
|
java.lang.String str10 = operation0.path;
|
||||||
|
java.lang.Object obj11 = operation0.value;
|
||||||
|
java.lang.String str12 = operation0.from;
|
||||||
|
// during test generation this statement threw an exception of type java.lang.NullPointerException in error
|
||||||
|
java.lang.Object obj14 = com.alibaba.fastjson.JSONPatch.apply((java.lang.Object) str12, "");
|
||||||
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
public void test7() throws Throwable {
|
||||||
|
if (debug)
|
||||||
|
System.out.format("%n%s%n", "ErrorTest0.test7");
|
||||||
|
com.alibaba.fastjson.JSONPatch.Operation operation0 = new com.alibaba.fastjson.JSONPatch.Operation();
|
||||||
|
operation0.value = (-1.0d);
|
||||||
|
operation0.value = (-1L);
|
||||||
|
java.lang.String str5 = operation0.path;
|
||||||
|
operation0.value = "\u6401\u6401\u6401\u6401\u6401\u6401\u6401\u6401\001\001\u6401\u6401a a";
|
||||||
|
// during test generation this statement threw an exception of type java.lang.NullPointerException in error
|
||||||
|
java.lang.Object obj9 = com.alibaba.fastjson.JSONPatch.apply((java.lang.Object) operation0, "");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,8 @@
|
|||||||
|
import org.junit.runner.RunWith;
|
||||||
|
import org.junit.runners.Suite;
|
||||||
|
|
||||||
|
@RunWith(Suite.class)
|
||||||
|
@Suite.SuiteClasses({ RegressionTest0.class, RegressionTest1.class, RegressionTest2.class, RegressionTest3.class, RegressionTest4.class, RegressionTest5.class })
|
||||||
|
public class RegressionTest {
|
||||||
|
}
|
||||||
|
|
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
@ -0,0 +1,3 @@
|
|||||||
|
com.alibaba.fastjson.JSONPatch
|
||||||
|
java.lang.Object
|
||||||
|
java.lang.String
|
@ -0,0 +1,8 @@
|
|||||||
|
import org.junit.runner.RunWith;
|
||||||
|
import org.junit.runners.Suite;
|
||||||
|
|
||||||
|
@RunWith(Suite.class)
|
||||||
|
@Suite.SuiteClasses({ ErrorTest0.class })
|
||||||
|
public class ErrorTest {
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,549 @@
|
|||||||
|
import org.junit.FixMethodOrder;
|
||||||
|
import org.junit.Test;
|
||||||
|
import org.junit.runners.MethodSorters;
|
||||||
|
|
||||||
|
@FixMethodOrder(MethodSorters.NAME_ASCENDING)
|
||||||
|
public class ErrorTest0 {
|
||||||
|
|
||||||
|
public static boolean debug = false;
|
||||||
|
|
||||||
|
@Test
|
||||||
|
public void test01() throws Throwable {
|
||||||
|
if (debug)
|
||||||
|
System.out.format("%n%s%n", "ErrorTest0.test01");
|
||||||
|
com.alibaba.fastjson.parser.DefaultJSONParser defaultJSONParser1 = new com.alibaba.fastjson.parser.DefaultJSONParser("97");
|
||||||
|
java.lang.Object obj2 = defaultJSONParser1.input;
|
||||||
|
java.util.Set<java.lang.String> strSet4 = java.util.Set.of("hi!");
|
||||||
|
boolean boolean6 = strSet4.contains((java.lang.Object) (byte) 10);
|
||||||
|
java.lang.Object[] objArray7 = strSet4.toArray();
|
||||||
|
com.alibaba.fastjson.parser.DefaultJSONParser defaultJSONParser9 = new com.alibaba.fastjson.parser.DefaultJSONParser("97");
|
||||||
|
java.lang.Object obj10 = defaultJSONParser9.input;
|
||||||
|
java.util.Set<java.lang.String> strSet12 = java.util.Set.of("hi!");
|
||||||
|
boolean boolean14 = strSet12.contains((java.lang.Object) (byte) 10);
|
||||||
|
java.lang.Object[] objArray15 = strSet12.toArray();
|
||||||
|
java.lang.String[] strArray18 = new java.lang.String[] { "fastjson.parser.safeMode", "fastjson.parser.safeMode" };
|
||||||
|
java.util.LinkedHashSet<java.lang.String> strSet19 = new java.util.LinkedHashSet<java.lang.String>();
|
||||||
|
boolean boolean20 = java.util.Collections.addAll((java.util.Collection<java.lang.String>) strSet19, strArray18);
|
||||||
|
java.util.Set<java.lang.String> strSet23 = java.util.Set.of("fastjson.parser.safeMode", "");
|
||||||
|
boolean boolean24 = strSet19.removeAll((java.util.Collection<java.lang.String>) strSet23);
|
||||||
|
java.util.Spliterator<java.lang.String> strSpliterator25 = strSet19.spliterator();
|
||||||
|
boolean boolean26 = strSet12.containsAll((java.util.Collection<java.lang.String>) strSet19);
|
||||||
|
java.lang.Object[] objArray27 = strSet19.toArray();
|
||||||
|
java.util.Map<com.alibaba.fastjson.parser.DefaultJSONParser, java.lang.Object[]> defaultJSONParserMap28 = java.util.Map.of(defaultJSONParser1, objArray7, defaultJSONParser9, objArray27);
|
||||||
|
// during test generation this statement threw an exception of type java.lang.NullPointerException in error
|
||||||
|
com.alibaba.fastjson.parser.DefaultJSONParser.ResolveTask resolveTask29 = defaultJSONParser1.getLastResolveTask();
|
||||||
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
public void test02() throws Throwable {
|
||||||
|
if (debug)
|
||||||
|
System.out.format("%n%s%n", "ErrorTest0.test02");
|
||||||
|
com.alibaba.fastjson.parser.DefaultJSONParser defaultJSONParser1 = new com.alibaba.fastjson.parser.DefaultJSONParser("97");
|
||||||
|
com.alibaba.fastjson.parser.JSONLexer jSONLexer2 = defaultJSONParser1.getLexer();
|
||||||
|
java.lang.Object obj3 = defaultJSONParser1.input;
|
||||||
|
java.lang.String[] strArray6 = new java.lang.String[] { "fastjson.parser.safeMode", "fastjson.parser.safeMode" };
|
||||||
|
java.util.LinkedHashSet<java.lang.String> strSet7 = new java.util.LinkedHashSet<java.lang.String>();
|
||||||
|
boolean boolean8 = java.util.Collections.addAll((java.util.Collection<java.lang.String>) strSet7, strArray6);
|
||||||
|
java.util.Set<java.lang.String> strSet11 = java.util.Set.of("fastjson.parser.safeMode", "");
|
||||||
|
boolean boolean12 = strSet7.removeAll((java.util.Collection<java.lang.String>) strSet11);
|
||||||
|
java.util.List<java.lang.constant.ConstantDesc> constantDescList13 = java.util.List.copyOf((java.util.Collection<java.lang.String>) strSet7);
|
||||||
|
boolean boolean15 = constantDescList13.contains((java.lang.Object) 100);
|
||||||
|
defaultJSONParser1.checkListResolve((java.util.Collection) constantDescList13);
|
||||||
|
// during test generation this statement threw an exception of type java.lang.NullPointerException in error
|
||||||
|
defaultJSONParser1.popContext();
|
||||||
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
public void test03() throws Throwable {
|
||||||
|
if (debug)
|
||||||
|
System.out.format("%n%s%n", "ErrorTest0.test03");
|
||||||
|
com.alibaba.fastjson.parser.DefaultJSONParser defaultJSONParser1 = new com.alibaba.fastjson.parser.DefaultJSONParser("97");
|
||||||
|
com.alibaba.fastjson.parser.JSONLexer jSONLexer2 = defaultJSONParser1.getLexer();
|
||||||
|
// during test generation this statement threw an exception of type java.lang.NullPointerException in error
|
||||||
|
com.alibaba.fastjson.parser.ParseContext parseContext3 = defaultJSONParser1.getOwnerContext();
|
||||||
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
public void test04() throws Throwable {
|
||||||
|
if (debug)
|
||||||
|
System.out.format("%n%s%n", "ErrorTest0.test04");
|
||||||
|
com.alibaba.fastjson.parser.DefaultJSONParser defaultJSONParser1 = new com.alibaba.fastjson.parser.DefaultJSONParser("97");
|
||||||
|
java.lang.Object obj2 = defaultJSONParser1.input;
|
||||||
|
java.util.Set<java.lang.String> strSet4 = java.util.Set.of("hi!");
|
||||||
|
boolean boolean6 = strSet4.contains((java.lang.Object) (byte) 10);
|
||||||
|
java.lang.Object[] objArray7 = strSet4.toArray();
|
||||||
|
com.alibaba.fastjson.parser.DefaultJSONParser defaultJSONParser9 = new com.alibaba.fastjson.parser.DefaultJSONParser("97");
|
||||||
|
java.lang.Object obj10 = defaultJSONParser9.input;
|
||||||
|
java.util.Set<java.lang.String> strSet12 = java.util.Set.of("hi!");
|
||||||
|
boolean boolean14 = strSet12.contains((java.lang.Object) (byte) 10);
|
||||||
|
java.lang.Object[] objArray15 = strSet12.toArray();
|
||||||
|
java.lang.String[] strArray18 = new java.lang.String[] { "fastjson.parser.safeMode", "fastjson.parser.safeMode" };
|
||||||
|
java.util.LinkedHashSet<java.lang.String> strSet19 = new java.util.LinkedHashSet<java.lang.String>();
|
||||||
|
boolean boolean20 = java.util.Collections.addAll((java.util.Collection<java.lang.String>) strSet19, strArray18);
|
||||||
|
java.util.Set<java.lang.String> strSet23 = java.util.Set.of("fastjson.parser.safeMode", "");
|
||||||
|
boolean boolean24 = strSet19.removeAll((java.util.Collection<java.lang.String>) strSet23);
|
||||||
|
java.util.Spliterator<java.lang.String> strSpliterator25 = strSet19.spliterator();
|
||||||
|
boolean boolean26 = strSet12.containsAll((java.util.Collection<java.lang.String>) strSet19);
|
||||||
|
java.lang.Object[] objArray27 = strSet19.toArray();
|
||||||
|
java.util.Map<com.alibaba.fastjson.parser.DefaultJSONParser, java.lang.Object[]> defaultJSONParserMap28 = java.util.Map.of(defaultJSONParser1, objArray7, defaultJSONParser9, objArray27);
|
||||||
|
com.alibaba.fastjson.parser.Feature feature29 = com.alibaba.fastjson.parser.Feature.ErrorOnEnumNotMatch;
|
||||||
|
boolean boolean30 = defaultJSONParser9.isEnabled(feature29);
|
||||||
|
// during test generation this statement threw an exception of type java.lang.NullPointerException in error
|
||||||
|
defaultJSONParser9.popContext();
|
||||||
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
public void test05() throws Throwable {
|
||||||
|
if (debug)
|
||||||
|
System.out.format("%n%s%n", "ErrorTest0.test05");
|
||||||
|
com.alibaba.fastjson.JSONPath jSONPath2 = new com.alibaba.fastjson.JSONPath("fastjson.parser.autoTypeAccept", false);
|
||||||
|
java.lang.String[] strArray5 = new java.lang.String[] { "fastjson.parser.safeMode", "fastjson.parser.safeMode" };
|
||||||
|
java.util.LinkedHashSet<java.lang.String> strSet6 = new java.util.LinkedHashSet<java.lang.String>();
|
||||||
|
boolean boolean7 = java.util.Collections.addAll((java.util.Collection<java.lang.String>) strSet6, strArray5);
|
||||||
|
java.util.Set<java.lang.String> strSet10 = java.util.Set.of("fastjson.parser.safeMode", "");
|
||||||
|
boolean boolean11 = strSet6.removeAll((java.util.Collection<java.lang.String>) strSet10);
|
||||||
|
java.util.Iterator<java.lang.String> strItor12 = strSet10.iterator();
|
||||||
|
int int13 = jSONPath2.size((java.lang.Object) strItor12);
|
||||||
|
java.lang.String str14 = jSONPath2.toJSONString();
|
||||||
|
com.alibaba.fastjson.parser.DefaultJSONParser defaultJSONParser16 = new com.alibaba.fastjson.parser.DefaultJSONParser("97");
|
||||||
|
com.alibaba.fastjson.parser.JSONLexer jSONLexer17 = defaultJSONParser16.getLexer();
|
||||||
|
com.alibaba.fastjson.parser.DefaultJSONParser defaultJSONParser18 = new com.alibaba.fastjson.parser.DefaultJSONParser(jSONLexer17);
|
||||||
|
// during test generation this statement threw an exception of type java.lang.NullPointerException in error
|
||||||
|
boolean boolean20 = jSONPath2.set((java.lang.Object) defaultJSONParser18, (java.lang.Object) "4 a4");
|
||||||
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
public void test06() throws Throwable {
|
||||||
|
if (debug)
|
||||||
|
System.out.format("%n%s%n", "ErrorTest0.test06");
|
||||||
|
com.alibaba.fastjson.parser.DefaultJSONParser defaultJSONParser1 = new com.alibaba.fastjson.parser.DefaultJSONParser("97");
|
||||||
|
com.alibaba.fastjson.parser.JSONLexer jSONLexer2 = defaultJSONParser1.getLexer();
|
||||||
|
java.lang.Object obj3 = defaultJSONParser1.input;
|
||||||
|
// during test generation this statement threw an exception of type java.lang.NullPointerException in error
|
||||||
|
com.alibaba.fastjson.parser.ParseContext parseContext4 = defaultJSONParser1.getOwnerContext();
|
||||||
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
public void test07() throws Throwable {
|
||||||
|
if (debug)
|
||||||
|
System.out.format("%n%s%n", "ErrorTest0.test07");
|
||||||
|
com.alibaba.fastjson.JSONPath jSONPath2 = new com.alibaba.fastjson.JSONPath("fastjson.parser.autoTypeAccept", false);
|
||||||
|
com.alibaba.fastjson.parser.DefaultJSONParser defaultJSONParser5 = new com.alibaba.fastjson.parser.DefaultJSONParser("97");
|
||||||
|
com.alibaba.fastjson.parser.JSONLexer jSONLexer6 = defaultJSONParser5.getLexer();
|
||||||
|
java.lang.Object obj7 = defaultJSONParser5.input;
|
||||||
|
java.lang.String[] strArray10 = new java.lang.String[] { "fastjson.parser.safeMode", "fastjson.parser.safeMode" };
|
||||||
|
java.util.LinkedHashSet<java.lang.String> strSet11 = new java.util.LinkedHashSet<java.lang.String>();
|
||||||
|
boolean boolean12 = java.util.Collections.addAll((java.util.Collection<java.lang.String>) strSet11, strArray10);
|
||||||
|
java.util.Set<java.lang.String> strSet15 = java.util.Set.of("fastjson.parser.safeMode", "");
|
||||||
|
boolean boolean16 = strSet11.removeAll((java.util.Collection<java.lang.String>) strSet15);
|
||||||
|
java.util.List<java.lang.constant.ConstantDesc> constantDescList17 = java.util.List.copyOf((java.util.Collection<java.lang.String>) strSet11);
|
||||||
|
boolean boolean19 = constantDescList17.contains((java.lang.Object) 100);
|
||||||
|
defaultJSONParser5.checkListResolve((java.util.Collection) constantDescList17);
|
||||||
|
boolean boolean21 = com.alibaba.fastjson.JSONPath.containsValue((java.lang.Object) false, "hi!", (java.lang.Object) defaultJSONParser5);
|
||||||
|
java.util.List<com.alibaba.fastjson.parser.deserializer.ExtraProcessor> extraProcessorList22 = defaultJSONParser5.getExtraProcessors();
|
||||||
|
// during test generation this statement threw an exception of type java.lang.NullPointerException in error
|
||||||
|
com.alibaba.fastjson.parser.ParseContext parseContext23 = defaultJSONParser5.getOwnerContext();
|
||||||
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
public void test08() throws Throwable {
|
||||||
|
if (debug)
|
||||||
|
System.out.format("%n%s%n", "ErrorTest0.test08");
|
||||||
|
com.alibaba.fastjson.parser.DefaultJSONParser defaultJSONParser1 = new com.alibaba.fastjson.parser.DefaultJSONParser("");
|
||||||
|
// during test generation this statement threw an exception of type java.lang.NullPointerException in error
|
||||||
|
com.alibaba.fastjson.parser.ParseContext parseContext2 = defaultJSONParser1.getOwnerContext();
|
||||||
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
public void test09() throws Throwable {
|
||||||
|
if (debug)
|
||||||
|
System.out.format("%n%s%n", "ErrorTest0.test09");
|
||||||
|
com.alibaba.fastjson.serializer.SerializeConfig serializeConfig1 = new com.alibaba.fastjson.serializer.SerializeConfig((int) (short) 10);
|
||||||
|
// during test generation this statement threw an exception of type java.lang.NullPointerException in error
|
||||||
|
java.util.Set<?> wildcardSet3 = com.alibaba.fastjson.JSONPath.keySet((java.lang.Object) serializeConfig1, "fastjson.parser.autoTypeSupport");
|
||||||
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
public void test10() throws Throwable {
|
||||||
|
if (debug)
|
||||||
|
System.out.format("%n%s%n", "ErrorTest0.test10");
|
||||||
|
com.alibaba.fastjson.parser.DefaultJSONParser defaultJSONParser1 = new com.alibaba.fastjson.parser.DefaultJSONParser("10.0");
|
||||||
|
// during test generation this statement threw an exception of type java.lang.NullPointerException in error
|
||||||
|
com.alibaba.fastjson.parser.ParseContext parseContext2 = defaultJSONParser1.getOwnerContext();
|
||||||
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
public void test11() throws Throwable {
|
||||||
|
if (debug)
|
||||||
|
System.out.format("%n%s%n", "ErrorTest0.test11");
|
||||||
|
com.alibaba.fastjson.JSONPath jSONPath2 = new com.alibaba.fastjson.JSONPath("fastjson.parser.autoTypeAccept", false);
|
||||||
|
com.alibaba.fastjson.parser.DefaultJSONParser defaultJSONParser5 = new com.alibaba.fastjson.parser.DefaultJSONParser("97");
|
||||||
|
com.alibaba.fastjson.parser.JSONLexer jSONLexer6 = defaultJSONParser5.getLexer();
|
||||||
|
java.lang.Object obj7 = defaultJSONParser5.input;
|
||||||
|
java.lang.String[] strArray10 = new java.lang.String[] { "fastjson.parser.safeMode", "fastjson.parser.safeMode" };
|
||||||
|
java.util.LinkedHashSet<java.lang.String> strSet11 = new java.util.LinkedHashSet<java.lang.String>();
|
||||||
|
boolean boolean12 = java.util.Collections.addAll((java.util.Collection<java.lang.String>) strSet11, strArray10);
|
||||||
|
java.util.Set<java.lang.String> strSet15 = java.util.Set.of("fastjson.parser.safeMode", "");
|
||||||
|
boolean boolean16 = strSet11.removeAll((java.util.Collection<java.lang.String>) strSet15);
|
||||||
|
java.util.List<java.lang.constant.ConstantDesc> constantDescList17 = java.util.List.copyOf((java.util.Collection<java.lang.String>) strSet11);
|
||||||
|
boolean boolean19 = constantDescList17.contains((java.lang.Object) 100);
|
||||||
|
defaultJSONParser5.checkListResolve((java.util.Collection) constantDescList17);
|
||||||
|
boolean boolean21 = com.alibaba.fastjson.JSONPath.containsValue((java.lang.Object) false, "hi!", (java.lang.Object) defaultJSONParser5);
|
||||||
|
com.alibaba.fastjson.parser.SymbolTable symbolTable22 = defaultJSONParser5.getSymbolTable();
|
||||||
|
// during test generation this statement threw an exception of type java.lang.NullPointerException in error
|
||||||
|
com.alibaba.fastjson.parser.ParseContext parseContext23 = defaultJSONParser5.getOwnerContext();
|
||||||
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
public void test12() throws Throwable {
|
||||||
|
if (debug)
|
||||||
|
System.out.format("%n%s%n", "ErrorTest0.test12");
|
||||||
|
java.lang.String[] strArray2 = new java.lang.String[] { "fastjson.parser.safeMode", "fastjson.parser.safeMode" };
|
||||||
|
java.util.LinkedHashSet<java.lang.String> strSet3 = new java.util.LinkedHashSet<java.lang.String>();
|
||||||
|
boolean boolean4 = java.util.Collections.addAll((java.util.Collection<java.lang.String>) strSet3, strArray2);
|
||||||
|
java.util.Set<java.lang.String> strSet7 = java.util.Set.of("fastjson.parser.safeMode", "");
|
||||||
|
boolean boolean8 = strSet3.removeAll((java.util.Collection<java.lang.String>) strSet7);
|
||||||
|
java.util.List<java.lang.constant.ConstantDesc> constantDescList9 = java.util.List.copyOf((java.util.Collection<java.lang.String>) strSet3);
|
||||||
|
boolean boolean11 = constantDescList9.contains((java.lang.Object) 100);
|
||||||
|
java.util.ListIterator<java.lang.constant.ConstantDesc> constantDescItor12 = constantDescList9.listIterator();
|
||||||
|
// during test generation this statement threw an exception of type java.lang.NullPointerException in error
|
||||||
|
boolean boolean14 = com.alibaba.fastjson.JSONPath.contains((java.lang.Object) constantDescList9, "a");
|
||||||
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
public void test13() throws Throwable {
|
||||||
|
if (debug)
|
||||||
|
System.out.format("%n%s%n", "ErrorTest0.test13");
|
||||||
|
java.lang.String[] strArray2 = new java.lang.String[] { "fastjson.parser.safeMode", "fastjson.parser.safeMode" };
|
||||||
|
java.util.LinkedHashSet<java.lang.String> strSet3 = new java.util.LinkedHashSet<java.lang.String>();
|
||||||
|
boolean boolean4 = java.util.Collections.addAll((java.util.Collection<java.lang.String>) strSet3, strArray2);
|
||||||
|
java.util.Set<java.lang.String> strSet7 = java.util.Set.of("fastjson.parser.safeMode", "");
|
||||||
|
boolean boolean8 = strSet3.removeAll((java.util.Collection<java.lang.String>) strSet7);
|
||||||
|
java.util.Spliterator<java.lang.String> strSpliterator9 = strSet3.spliterator();
|
||||||
|
java.util.Set<java.lang.String> strSet11 = java.util.Set.of("hi!");
|
||||||
|
boolean boolean13 = strSet11.contains((java.lang.Object) (byte) 10);
|
||||||
|
java.lang.Object[] objArray14 = strSet11.toArray();
|
||||||
|
java.lang.String[] strArray17 = new java.lang.String[] { "fastjson.parser.safeMode", "fastjson.parser.safeMode" };
|
||||||
|
java.util.LinkedHashSet<java.lang.String> strSet18 = new java.util.LinkedHashSet<java.lang.String>();
|
||||||
|
boolean boolean19 = java.util.Collections.addAll((java.util.Collection<java.lang.String>) strSet18, strArray17);
|
||||||
|
java.util.Set<java.lang.String> strSet22 = java.util.Set.of("fastjson.parser.safeMode", "");
|
||||||
|
boolean boolean23 = strSet18.removeAll((java.util.Collection<java.lang.String>) strSet22);
|
||||||
|
java.util.Spliterator<java.lang.String> strSpliterator24 = strSet18.spliterator();
|
||||||
|
boolean boolean25 = strSet11.containsAll((java.util.Collection<java.lang.String>) strSet18);
|
||||||
|
java.lang.String[] strArray28 = new java.lang.String[] { "fastjson.parser.safeMode", "fastjson.parser.safeMode" };
|
||||||
|
java.util.LinkedHashSet<java.lang.String> strSet29 = new java.util.LinkedHashSet<java.lang.String>();
|
||||||
|
boolean boolean30 = java.util.Collections.addAll((java.util.Collection<java.lang.String>) strSet29, strArray28);
|
||||||
|
java.util.Set<java.lang.String> strSet33 = java.util.Set.of("fastjson.parser.safeMode", "");
|
||||||
|
boolean boolean34 = strSet29.removeAll((java.util.Collection<java.lang.String>) strSet33);
|
||||||
|
java.util.Spliterator<java.lang.String> strSpliterator35 = strSet29.spliterator();
|
||||||
|
java.lang.String[] strArray38 = new java.lang.String[] { "fastjson.parser.safeMode", "fastjson.parser.safeMode" };
|
||||||
|
java.util.LinkedHashSet<java.lang.String> strSet39 = new java.util.LinkedHashSet<java.lang.String>();
|
||||||
|
boolean boolean40 = java.util.Collections.addAll((java.util.Collection<java.lang.String>) strSet39, strArray38);
|
||||||
|
java.util.Set<java.lang.String> strSet43 = java.util.Set.of("fastjson.parser.safeMode", "");
|
||||||
|
boolean boolean44 = strSet39.removeAll((java.util.Collection<java.lang.String>) strSet43);
|
||||||
|
java.util.List<java.lang.constant.ConstantDesc> constantDescList45 = java.util.List.copyOf((java.util.Collection<java.lang.String>) strSet39);
|
||||||
|
java.lang.String[] strArray48 = new java.lang.String[] { "fastjson.parser.safeMode", "fastjson.parser.safeMode" };
|
||||||
|
java.util.LinkedHashSet<java.lang.String> strSet49 = new java.util.LinkedHashSet<java.lang.String>();
|
||||||
|
boolean boolean50 = java.util.Collections.addAll((java.util.Collection<java.lang.String>) strSet49, strArray48);
|
||||||
|
java.util.Set<java.lang.String> strSet53 = java.util.Set.of("fastjson.parser.safeMode", "");
|
||||||
|
boolean boolean54 = strSet49.removeAll((java.util.Collection<java.lang.String>) strSet53);
|
||||||
|
java.lang.String[] strArray57 = new java.lang.String[] { "fastjson.parser.safeMode", "fastjson.parser.safeMode" };
|
||||||
|
java.util.LinkedHashSet<java.lang.String> strSet58 = new java.util.LinkedHashSet<java.lang.String>();
|
||||||
|
boolean boolean59 = java.util.Collections.addAll((java.util.Collection<java.lang.String>) strSet58, strArray57);
|
||||||
|
java.util.Set<java.lang.String> strSet62 = java.util.Set.of("fastjson.parser.safeMode", "");
|
||||||
|
boolean boolean63 = strSet58.removeAll((java.util.Collection<java.lang.String>) strSet62);
|
||||||
|
java.util.Spliterator<java.lang.String> strSpliterator64 = strSet58.spliterator();
|
||||||
|
java.lang.String[] strArray67 = new java.lang.String[] { "fastjson.parser.safeMode", "fastjson.parser.safeMode" };
|
||||||
|
java.util.LinkedHashSet<java.lang.String> strSet68 = new java.util.LinkedHashSet<java.lang.String>();
|
||||||
|
boolean boolean69 = java.util.Collections.addAll((java.util.Collection<java.lang.String>) strSet68, strArray67);
|
||||||
|
java.util.Set<java.lang.String> strSet72 = java.util.Set.of("fastjson.parser.safeMode", "");
|
||||||
|
boolean boolean73 = strSet68.removeAll((java.util.Collection<java.lang.String>) strSet72);
|
||||||
|
java.util.List<java.lang.constant.ConstantDesc> constantDescList74 = java.util.List.copyOf((java.util.Collection<java.lang.String>) strSet68);
|
||||||
|
java.util.LinkedHashSet[] linkedHashSetArray76 = new java.util.LinkedHashSet[6];
|
||||||
|
@SuppressWarnings("unchecked")
|
||||||
|
java.util.LinkedHashSet<java.lang.String>[] strSetArray77 = (java.util.LinkedHashSet<java.lang.String>[]) linkedHashSetArray76;
|
||||||
|
strSetArray77[0] = strSet18;
|
||||||
|
strSetArray77[1] = strSet29;
|
||||||
|
strSetArray77[2] = strSet39;
|
||||||
|
strSetArray77[3] = strSet49;
|
||||||
|
strSetArray77[4] = strSet58;
|
||||||
|
strSetArray77[5] = strSet68;
|
||||||
|
java.util.LinkedHashSet<java.lang.String>[] strSetArray90 = strSet3.toArray(strSetArray77);
|
||||||
|
// during test generation this statement threw an exception of type java.lang.NullPointerException in error
|
||||||
|
java.util.List<java.lang.Iterable<java.lang.String>> strIterableList91 = java.util.List.of((java.lang.Iterable<java.lang.String>[]) strSetArray77);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
public void test14() throws Throwable {
|
||||||
|
if (debug)
|
||||||
|
System.out.format("%n%s%n", "ErrorTest0.test14");
|
||||||
|
java.lang.String[] strArray2 = new java.lang.String[] { "fastjson.parser.safeMode", "fastjson.parser.safeMode" };
|
||||||
|
java.util.LinkedHashSet<java.lang.String> strSet3 = new java.util.LinkedHashSet<java.lang.String>();
|
||||||
|
boolean boolean4 = java.util.Collections.addAll((java.util.Collection<java.lang.String>) strSet3, strArray2);
|
||||||
|
java.util.Set<java.lang.String> strSet7 = java.util.Set.of("fastjson.parser.safeMode", "");
|
||||||
|
boolean boolean8 = strSet3.removeAll((java.util.Collection<java.lang.String>) strSet7);
|
||||||
|
java.util.Iterator<java.lang.String> strItor9 = strSet7.iterator();
|
||||||
|
java.lang.String[] strArray12 = new java.lang.String[] { "fastjson.parser.safeMode", "fastjson.parser.safeMode" };
|
||||||
|
java.util.LinkedHashSet<java.lang.String> strSet13 = new java.util.LinkedHashSet<java.lang.String>();
|
||||||
|
boolean boolean14 = java.util.Collections.addAll((java.util.Collection<java.lang.String>) strSet13, strArray12);
|
||||||
|
java.util.Set<java.lang.String> strSet17 = java.util.Set.of("fastjson.parser.safeMode", "");
|
||||||
|
boolean boolean18 = strSet13.removeAll((java.util.Collection<java.lang.String>) strSet17);
|
||||||
|
java.util.Iterator<java.lang.String> strItor19 = strSet17.iterator();
|
||||||
|
java.lang.String[] strArray22 = new java.lang.String[] { "fastjson.parser.safeMode", "fastjson.parser.safeMode" };
|
||||||
|
java.util.LinkedHashSet<java.lang.String> strSet23 = new java.util.LinkedHashSet<java.lang.String>();
|
||||||
|
boolean boolean24 = java.util.Collections.addAll((java.util.Collection<java.lang.String>) strSet23, strArray22);
|
||||||
|
java.util.Set<java.lang.String> strSet27 = java.util.Set.of("fastjson.parser.safeMode", "");
|
||||||
|
boolean boolean28 = strSet23.removeAll((java.util.Collection<java.lang.String>) strSet27);
|
||||||
|
java.util.Iterator<java.lang.String> strItor29 = strSet27.iterator();
|
||||||
|
java.lang.String[] strArray32 = new java.lang.String[] { "fastjson.parser.safeMode", "fastjson.parser.safeMode" };
|
||||||
|
java.util.LinkedHashSet<java.lang.String> strSet33 = new java.util.LinkedHashSet<java.lang.String>();
|
||||||
|
boolean boolean34 = java.util.Collections.addAll((java.util.Collection<java.lang.String>) strSet33, strArray32);
|
||||||
|
java.util.Set<java.lang.String> strSet37 = java.util.Set.of("fastjson.parser.safeMode", "");
|
||||||
|
boolean boolean38 = strSet33.removeAll((java.util.Collection<java.lang.String>) strSet37);
|
||||||
|
java.util.Iterator<java.lang.String> strItor39 = strSet37.iterator();
|
||||||
|
java.lang.String[] strArray42 = new java.lang.String[] { "fastjson.parser.safeMode", "fastjson.parser.safeMode" };
|
||||||
|
java.util.LinkedHashSet<java.lang.String> strSet43 = new java.util.LinkedHashSet<java.lang.String>();
|
||||||
|
boolean boolean44 = java.util.Collections.addAll((java.util.Collection<java.lang.String>) strSet43, strArray42);
|
||||||
|
java.util.Set<java.lang.String> strSet47 = java.util.Set.of("fastjson.parser.safeMode", "");
|
||||||
|
boolean boolean48 = strSet43.removeAll((java.util.Collection<java.lang.String>) strSet47);
|
||||||
|
java.util.Iterator<java.lang.String> strItor49 = strSet47.iterator();
|
||||||
|
java.lang.String[] strArray52 = new java.lang.String[] { "fastjson.parser.safeMode", "fastjson.parser.safeMode" };
|
||||||
|
java.util.LinkedHashSet<java.lang.String> strSet53 = new java.util.LinkedHashSet<java.lang.String>();
|
||||||
|
boolean boolean54 = java.util.Collections.addAll((java.util.Collection<java.lang.String>) strSet53, strArray52);
|
||||||
|
java.util.Set<java.lang.String> strSet57 = java.util.Set.of("fastjson.parser.safeMode", "");
|
||||||
|
boolean boolean58 = strSet53.removeAll((java.util.Collection<java.lang.String>) strSet57);
|
||||||
|
java.util.Iterator<java.lang.String> strItor59 = strSet57.iterator();
|
||||||
|
java.lang.String[] strArray62 = new java.lang.String[] { "fastjson.parser.safeMode", "fastjson.parser.safeMode" };
|
||||||
|
java.util.LinkedHashSet<java.lang.String> strSet63 = new java.util.LinkedHashSet<java.lang.String>();
|
||||||
|
boolean boolean64 = java.util.Collections.addAll((java.util.Collection<java.lang.String>) strSet63, strArray62);
|
||||||
|
java.util.Set<java.lang.String> strSet67 = java.util.Set.of("fastjson.parser.safeMode", "");
|
||||||
|
boolean boolean68 = strSet63.removeAll((java.util.Collection<java.lang.String>) strSet67);
|
||||||
|
java.util.Iterator<java.lang.String> strItor69 = strSet67.iterator();
|
||||||
|
java.lang.String[] strArray72 = new java.lang.String[] { "fastjson.parser.safeMode", "fastjson.parser.safeMode" };
|
||||||
|
java.util.LinkedHashSet<java.lang.String> strSet73 = new java.util.LinkedHashSet<java.lang.String>();
|
||||||
|
boolean boolean74 = java.util.Collections.addAll((java.util.Collection<java.lang.String>) strSet73, strArray72);
|
||||||
|
java.util.Set<java.lang.String> strSet77 = java.util.Set.of("fastjson.parser.safeMode", "");
|
||||||
|
boolean boolean78 = strSet73.removeAll((java.util.Collection<java.lang.String>) strSet77);
|
||||||
|
java.util.Iterator<java.lang.String> strItor79 = strSet77.iterator();
|
||||||
|
java.lang.String[] strArray82 = new java.lang.String[] { "fastjson.parser.safeMode", "fastjson.parser.safeMode" };
|
||||||
|
java.util.LinkedHashSet<java.lang.String> strSet83 = new java.util.LinkedHashSet<java.lang.String>();
|
||||||
|
boolean boolean84 = java.util.Collections.addAll((java.util.Collection<java.lang.String>) strSet83, strArray82);
|
||||||
|
java.util.Set<java.lang.String> strSet87 = java.util.Set.of("fastjson.parser.safeMode", "");
|
||||||
|
boolean boolean88 = strSet83.removeAll((java.util.Collection<java.lang.String>) strSet87);
|
||||||
|
java.util.Iterator<java.lang.String> strItor89 = strSet87.iterator();
|
||||||
|
java.util.List<java.util.Iterator<java.lang.String>> strItorList90 = java.util.List.of(strItor9, strItor19, strItor29, strItor39, strItor49, strItor59, strItor69, strItor79, strItor89);
|
||||||
|
// during test generation this statement threw an exception of type java.lang.NullPointerException in error
|
||||||
|
java.util.Map<java.lang.String, java.lang.Object> strMap91 = com.alibaba.fastjson.JSONPath.paths((java.lang.Object) strItor39);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
public void test15() throws Throwable {
|
||||||
|
if (debug)
|
||||||
|
System.out.format("%n%s%n", "ErrorTest0.test15");
|
||||||
|
com.alibaba.fastjson.parser.DefaultJSONParser defaultJSONParser1 = new com.alibaba.fastjson.parser.DefaultJSONParser("97");
|
||||||
|
com.alibaba.fastjson.parser.JSONLexer jSONLexer2 = defaultJSONParser1.lexer;
|
||||||
|
// during test generation this statement threw an exception of type java.lang.NullPointerException in error
|
||||||
|
java.lang.Object obj4 = com.alibaba.fastjson.JSONPath.eval((java.lang.Object) jSONLexer2, "hi!");
|
||||||
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
public void test16() throws Throwable {
|
||||||
|
if (debug)
|
||||||
|
System.out.format("%n%s%n", "ErrorTest0.test16");
|
||||||
|
java.util.Comparator<java.lang.String> strComparator0 = java.lang.String.CASE_INSENSITIVE_ORDER;
|
||||||
|
// during test generation this statement threw an exception of type java.lang.NullPointerException in error
|
||||||
|
boolean boolean2 = com.alibaba.fastjson.JSONPath.remove((java.lang.Object) strComparator0, "fastjson.parser.autoTypeAccept");
|
||||||
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
public void test17() throws Throwable {
|
||||||
|
if (debug)
|
||||||
|
System.out.format("%n%s%n", "ErrorTest0.test17");
|
||||||
|
java.lang.String[] strArray2 = new java.lang.String[] { "fastjson.parser.safeMode", "fastjson.parser.safeMode" };
|
||||||
|
java.util.LinkedHashSet<java.lang.String> strSet3 = new java.util.LinkedHashSet<java.lang.String>();
|
||||||
|
boolean boolean4 = java.util.Collections.addAll((java.util.Collection<java.lang.String>) strSet3, strArray2);
|
||||||
|
java.util.Set<java.lang.String> strSet7 = java.util.Set.of("fastjson.parser.safeMode", "");
|
||||||
|
boolean boolean8 = strSet3.removeAll((java.util.Collection<java.lang.String>) strSet7);
|
||||||
|
java.util.Spliterator<java.lang.String> strSpliterator9 = strSet3.spliterator();
|
||||||
|
java.util.Set<java.lang.String> strSet11 = java.util.Set.of("hi!");
|
||||||
|
boolean boolean13 = strSet11.contains((java.lang.Object) (byte) 10);
|
||||||
|
java.lang.Object[] objArray14 = strSet11.toArray();
|
||||||
|
java.lang.String[] strArray17 = new java.lang.String[] { "fastjson.parser.safeMode", "fastjson.parser.safeMode" };
|
||||||
|
java.util.LinkedHashSet<java.lang.String> strSet18 = new java.util.LinkedHashSet<java.lang.String>();
|
||||||
|
boolean boolean19 = java.util.Collections.addAll((java.util.Collection<java.lang.String>) strSet18, strArray17);
|
||||||
|
java.util.Set<java.lang.String> strSet22 = java.util.Set.of("fastjson.parser.safeMode", "");
|
||||||
|
boolean boolean23 = strSet18.removeAll((java.util.Collection<java.lang.String>) strSet22);
|
||||||
|
java.util.Spliterator<java.lang.String> strSpliterator24 = strSet18.spliterator();
|
||||||
|
boolean boolean25 = strSet11.containsAll((java.util.Collection<java.lang.String>) strSet18);
|
||||||
|
java.lang.String[] strArray28 = new java.lang.String[] { "fastjson.parser.safeMode", "fastjson.parser.safeMode" };
|
||||||
|
java.util.LinkedHashSet<java.lang.String> strSet29 = new java.util.LinkedHashSet<java.lang.String>();
|
||||||
|
boolean boolean30 = java.util.Collections.addAll((java.util.Collection<java.lang.String>) strSet29, strArray28);
|
||||||
|
java.util.Set<java.lang.String> strSet33 = java.util.Set.of("fastjson.parser.safeMode", "");
|
||||||
|
boolean boolean34 = strSet29.removeAll((java.util.Collection<java.lang.String>) strSet33);
|
||||||
|
java.util.Spliterator<java.lang.String> strSpliterator35 = strSet29.spliterator();
|
||||||
|
java.lang.String[] strArray38 = new java.lang.String[] { "fastjson.parser.safeMode", "fastjson.parser.safeMode" };
|
||||||
|
java.util.LinkedHashSet<java.lang.String> strSet39 = new java.util.LinkedHashSet<java.lang.String>();
|
||||||
|
boolean boolean40 = java.util.Collections.addAll((java.util.Collection<java.lang.String>) strSet39, strArray38);
|
||||||
|
java.util.Set<java.lang.String> strSet43 = java.util.Set.of("fastjson.parser.safeMode", "");
|
||||||
|
boolean boolean44 = strSet39.removeAll((java.util.Collection<java.lang.String>) strSet43);
|
||||||
|
java.util.List<java.lang.constant.ConstantDesc> constantDescList45 = java.util.List.copyOf((java.util.Collection<java.lang.String>) strSet39);
|
||||||
|
java.lang.String[] strArray48 = new java.lang.String[] { "fastjson.parser.safeMode", "fastjson.parser.safeMode" };
|
||||||
|
java.util.LinkedHashSet<java.lang.String> strSet49 = new java.util.LinkedHashSet<java.lang.String>();
|
||||||
|
boolean boolean50 = java.util.Collections.addAll((java.util.Collection<java.lang.String>) strSet49, strArray48);
|
||||||
|
java.util.Set<java.lang.String> strSet53 = java.util.Set.of("fastjson.parser.safeMode", "");
|
||||||
|
boolean boolean54 = strSet49.removeAll((java.util.Collection<java.lang.String>) strSet53);
|
||||||
|
java.lang.String[] strArray57 = new java.lang.String[] { "fastjson.parser.safeMode", "fastjson.parser.safeMode" };
|
||||||
|
java.util.LinkedHashSet<java.lang.String> strSet58 = new java.util.LinkedHashSet<java.lang.String>();
|
||||||
|
boolean boolean59 = java.util.Collections.addAll((java.util.Collection<java.lang.String>) strSet58, strArray57);
|
||||||
|
java.util.Set<java.lang.String> strSet62 = java.util.Set.of("fastjson.parser.safeMode", "");
|
||||||
|
boolean boolean63 = strSet58.removeAll((java.util.Collection<java.lang.String>) strSet62);
|
||||||
|
java.util.Spliterator<java.lang.String> strSpliterator64 = strSet58.spliterator();
|
||||||
|
java.lang.String[] strArray67 = new java.lang.String[] { "fastjson.parser.safeMode", "fastjson.parser.safeMode" };
|
||||||
|
java.util.LinkedHashSet<java.lang.String> strSet68 = new java.util.LinkedHashSet<java.lang.String>();
|
||||||
|
boolean boolean69 = java.util.Collections.addAll((java.util.Collection<java.lang.String>) strSet68, strArray67);
|
||||||
|
java.util.Set<java.lang.String> strSet72 = java.util.Set.of("fastjson.parser.safeMode", "");
|
||||||
|
boolean boolean73 = strSet68.removeAll((java.util.Collection<java.lang.String>) strSet72);
|
||||||
|
java.util.List<java.lang.constant.ConstantDesc> constantDescList74 = java.util.List.copyOf((java.util.Collection<java.lang.String>) strSet68);
|
||||||
|
java.util.LinkedHashSet[] linkedHashSetArray76 = new java.util.LinkedHashSet[6];
|
||||||
|
@SuppressWarnings("unchecked")
|
||||||
|
java.util.LinkedHashSet<java.lang.String>[] strSetArray77 = (java.util.LinkedHashSet<java.lang.String>[]) linkedHashSetArray76;
|
||||||
|
strSetArray77[0] = strSet18;
|
||||||
|
strSetArray77[1] = strSet29;
|
||||||
|
strSetArray77[2] = strSet39;
|
||||||
|
strSetArray77[3] = strSet49;
|
||||||
|
strSetArray77[4] = strSet58;
|
||||||
|
strSetArray77[5] = strSet68;
|
||||||
|
java.util.LinkedHashSet<java.lang.String>[] strSetArray90 = strSet3.toArray(strSetArray77);
|
||||||
|
// during test generation this statement threw an exception of type java.lang.NullPointerException in error
|
||||||
|
java.util.List<java.util.HashSet<java.lang.String>> strSetList91 = java.util.List.of((java.util.HashSet<java.lang.String>[]) strSetArray90);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
public void test18() throws Throwable {
|
||||||
|
if (debug)
|
||||||
|
System.out.format("%n%s%n", "ErrorTest0.test18");
|
||||||
|
java.lang.String[] strArray2 = new java.lang.String[] { "fastjson.parser.safeMode", "fastjson.parser.safeMode" };
|
||||||
|
java.util.LinkedHashSet<java.lang.String> strSet3 = new java.util.LinkedHashSet<java.lang.String>();
|
||||||
|
boolean boolean4 = java.util.Collections.addAll((java.util.Collection<java.lang.String>) strSet3, strArray2);
|
||||||
|
java.util.Set<java.lang.String> strSet7 = java.util.Set.of("fastjson.parser.safeMode", "");
|
||||||
|
boolean boolean8 = strSet3.removeAll((java.util.Collection<java.lang.String>) strSet7);
|
||||||
|
java.util.Spliterator<java.lang.String> strSpliterator9 = strSet3.spliterator();
|
||||||
|
java.util.Set<java.lang.String> strSet11 = java.util.Set.of("hi!");
|
||||||
|
boolean boolean13 = strSet11.contains((java.lang.Object) (byte) 10);
|
||||||
|
java.lang.Object[] objArray14 = strSet11.toArray();
|
||||||
|
java.lang.String[] strArray17 = new java.lang.String[] { "fastjson.parser.safeMode", "fastjson.parser.safeMode" };
|
||||||
|
java.util.LinkedHashSet<java.lang.String> strSet18 = new java.util.LinkedHashSet<java.lang.String>();
|
||||||
|
boolean boolean19 = java.util.Collections.addAll((java.util.Collection<java.lang.String>) strSet18, strArray17);
|
||||||
|
java.util.Set<java.lang.String> strSet22 = java.util.Set.of("fastjson.parser.safeMode", "");
|
||||||
|
boolean boolean23 = strSet18.removeAll((java.util.Collection<java.lang.String>) strSet22);
|
||||||
|
java.util.Spliterator<java.lang.String> strSpliterator24 = strSet18.spliterator();
|
||||||
|
boolean boolean25 = strSet11.containsAll((java.util.Collection<java.lang.String>) strSet18);
|
||||||
|
java.lang.String[] strArray28 = new java.lang.String[] { "fastjson.parser.safeMode", "fastjson.parser.safeMode" };
|
||||||
|
java.util.LinkedHashSet<java.lang.String> strSet29 = new java.util.LinkedHashSet<java.lang.String>();
|
||||||
|
boolean boolean30 = java.util.Collections.addAll((java.util.Collection<java.lang.String>) strSet29, strArray28);
|
||||||
|
java.util.Set<java.lang.String> strSet33 = java.util.Set.of("fastjson.parser.safeMode", "");
|
||||||
|
boolean boolean34 = strSet29.removeAll((java.util.Collection<java.lang.String>) strSet33);
|
||||||
|
java.util.Spliterator<java.lang.String> strSpliterator35 = strSet29.spliterator();
|
||||||
|
java.lang.String[] strArray38 = new java.lang.String[] { "fastjson.parser.safeMode", "fastjson.parser.safeMode" };
|
||||||
|
java.util.LinkedHashSet<java.lang.String> strSet39 = new java.util.LinkedHashSet<java.lang.String>();
|
||||||
|
boolean boolean40 = java.util.Collections.addAll((java.util.Collection<java.lang.String>) strSet39, strArray38);
|
||||||
|
java.util.Set<java.lang.String> strSet43 = java.util.Set.of("fastjson.parser.safeMode", "");
|
||||||
|
boolean boolean44 = strSet39.removeAll((java.util.Collection<java.lang.String>) strSet43);
|
||||||
|
java.util.List<java.lang.constant.ConstantDesc> constantDescList45 = java.util.List.copyOf((java.util.Collection<java.lang.String>) strSet39);
|
||||||
|
java.lang.String[] strArray48 = new java.lang.String[] { "fastjson.parser.safeMode", "fastjson.parser.safeMode" };
|
||||||
|
java.util.LinkedHashSet<java.lang.String> strSet49 = new java.util.LinkedHashSet<java.lang.String>();
|
||||||
|
boolean boolean50 = java.util.Collections.addAll((java.util.Collection<java.lang.String>) strSet49, strArray48);
|
||||||
|
java.util.Set<java.lang.String> strSet53 = java.util.Set.of("fastjson.parser.safeMode", "");
|
||||||
|
boolean boolean54 = strSet49.removeAll((java.util.Collection<java.lang.String>) strSet53);
|
||||||
|
java.lang.String[] strArray57 = new java.lang.String[] { "fastjson.parser.safeMode", "fastjson.parser.safeMode" };
|
||||||
|
java.util.LinkedHashSet<java.lang.String> strSet58 = new java.util.LinkedHashSet<java.lang.String>();
|
||||||
|
boolean boolean59 = java.util.Collections.addAll((java.util.Collection<java.lang.String>) strSet58, strArray57);
|
||||||
|
java.util.Set<java.lang.String> strSet62 = java.util.Set.of("fastjson.parser.safeMode", "");
|
||||||
|
boolean boolean63 = strSet58.removeAll((java.util.Collection<java.lang.String>) strSet62);
|
||||||
|
java.util.Spliterator<java.lang.String> strSpliterator64 = strSet58.spliterator();
|
||||||
|
java.lang.String[] strArray67 = new java.lang.String[] { "fastjson.parser.safeMode", "fastjson.parser.safeMode" };
|
||||||
|
java.util.LinkedHashSet<java.lang.String> strSet68 = new java.util.LinkedHashSet<java.lang.String>();
|
||||||
|
boolean boolean69 = java.util.Collections.addAll((java.util.Collection<java.lang.String>) strSet68, strArray67);
|
||||||
|
java.util.Set<java.lang.String> strSet72 = java.util.Set.of("fastjson.parser.safeMode", "");
|
||||||
|
boolean boolean73 = strSet68.removeAll((java.util.Collection<java.lang.String>) strSet72);
|
||||||
|
java.util.List<java.lang.constant.ConstantDesc> constantDescList74 = java.util.List.copyOf((java.util.Collection<java.lang.String>) strSet68);
|
||||||
|
java.util.LinkedHashSet[] linkedHashSetArray76 = new java.util.LinkedHashSet[6];
|
||||||
|
@SuppressWarnings("unchecked")
|
||||||
|
java.util.LinkedHashSet<java.lang.String>[] strSetArray77 = (java.util.LinkedHashSet<java.lang.String>[]) linkedHashSetArray76;
|
||||||
|
strSetArray77[0] = strSet18;
|
||||||
|
strSetArray77[1] = strSet29;
|
||||||
|
strSetArray77[2] = strSet39;
|
||||||
|
strSetArray77[3] = strSet49;
|
||||||
|
strSetArray77[4] = strSet58;
|
||||||
|
strSetArray77[5] = strSet68;
|
||||||
|
java.util.LinkedHashSet<java.lang.String>[] strSetArray90 = strSet3.toArray(strSetArray77);
|
||||||
|
char[] charArray93 = new char[] { ' ', ' ' };
|
||||||
|
java.lang.String str94 = new java.lang.String(charArray93);
|
||||||
|
java.util.Map.Entry<java.lang.Iterable<java.lang.String>[], char[]> strIterableArrayEntry95 = java.util.Map.entry((java.lang.Iterable<java.lang.String>[]) strSetArray77, charArray93);
|
||||||
|
// during test generation this statement threw an exception of type java.lang.NullPointerException in error
|
||||||
|
java.util.List<java.lang.Iterable<java.lang.String>> strIterableList96 = java.util.List.of((java.lang.Iterable<java.lang.String>[]) strSetArray77);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
public void test19() throws Throwable {
|
||||||
|
if (debug)
|
||||||
|
System.out.format("%n%s%n", "ErrorTest0.test19");
|
||||||
|
com.alibaba.fastjson.parser.DefaultJSONParser defaultJSONParser1 = new com.alibaba.fastjson.parser.DefaultJSONParser("");
|
||||||
|
com.alibaba.fastjson.parser.ParserConfig parserConfig2 = defaultJSONParser1.getConfig();
|
||||||
|
java.lang.String[] strArray5 = new java.lang.String[] { "fastjson.parser.safeMode", "fastjson.parser.safeMode" };
|
||||||
|
java.util.LinkedHashSet<java.lang.String> strSet6 = new java.util.LinkedHashSet<java.lang.String>();
|
||||||
|
boolean boolean7 = java.util.Collections.addAll((java.util.Collection<java.lang.String>) strSet6, strArray5);
|
||||||
|
java.util.Set<java.lang.String> strSet10 = java.util.Set.of("fastjson.parser.safeMode", "");
|
||||||
|
boolean boolean11 = strSet6.removeAll((java.util.Collection<java.lang.String>) strSet10);
|
||||||
|
java.util.List<java.lang.constant.ConstantDesc> constantDescList12 = java.util.List.copyOf((java.util.Collection<java.lang.String>) strSet6);
|
||||||
|
java.lang.String[] strArray18 = new java.lang.String[] { "97", "", "fastjson.parser.autoTypeAccept", "fastjson.parser.safeMode", "" };
|
||||||
|
java.util.ArrayList<java.lang.String> strList19 = new java.util.ArrayList<java.lang.String>();
|
||||||
|
boolean boolean20 = java.util.Collections.addAll((java.util.Collection<java.lang.String>) strList19, strArray18);
|
||||||
|
boolean boolean21 = strSet6.containsAll((java.util.Collection<java.lang.String>) strList19);
|
||||||
|
com.alibaba.fastjson.parser.DefaultJSONParser defaultJSONParser23 = new com.alibaba.fastjson.parser.DefaultJSONParser("97");
|
||||||
|
com.alibaba.fastjson.parser.JSONLexer jSONLexer24 = defaultJSONParser23.getLexer();
|
||||||
|
boolean boolean25 = strSet6.contains((java.lang.Object) defaultJSONParser23);
|
||||||
|
java.lang.Object obj26 = defaultJSONParser23.parse();
|
||||||
|
com.alibaba.fastjson.parser.Feature feature27 = com.alibaba.fastjson.parser.Feature.AllowComment;
|
||||||
|
boolean boolean28 = defaultJSONParser23.isEnabled(feature27);
|
||||||
|
boolean boolean29 = defaultJSONParser1.isEnabled(feature27);
|
||||||
|
// during test generation this statement threw an exception of type java.lang.NullPointerException in error
|
||||||
|
defaultJSONParser1.popContext();
|
||||||
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
public void test20() throws Throwable {
|
||||||
|
if (debug)
|
||||||
|
System.out.format("%n%s%n", "ErrorTest0.test20");
|
||||||
|
java.lang.String[] strArray2 = new java.lang.String[] { "fastjson.parser.safeMode", "fastjson.parser.safeMode" };
|
||||||
|
java.util.LinkedHashSet<java.lang.String> strSet3 = new java.util.LinkedHashSet<java.lang.String>();
|
||||||
|
boolean boolean4 = java.util.Collections.addAll((java.util.Collection<java.lang.String>) strSet3, strArray2);
|
||||||
|
java.util.Set<java.lang.String> strSet7 = java.util.Set.of("fastjson.parser.safeMode", "");
|
||||||
|
boolean boolean8 = strSet3.removeAll((java.util.Collection<java.lang.String>) strSet7);
|
||||||
|
boolean boolean10 = strSet3.contains((java.lang.Object) (-1.0d));
|
||||||
|
// during test generation this statement threw an exception of type java.lang.NullPointerException in error
|
||||||
|
boolean boolean12 = com.alibaba.fastjson.JSONPath.remove((java.lang.Object) strSet3, "d\000\377d\001");
|
||||||
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
public void test21() throws Throwable {
|
||||||
|
if (debug)
|
||||||
|
System.out.format("%n%s%n", "ErrorTest0.test21");
|
||||||
|
java.util.Comparator<java.lang.String> strComparator0 = java.lang.String.CASE_INSENSITIVE_ORDER;
|
||||||
|
com.alibaba.fastjson.parser.DefaultJSONParser defaultJSONParser2 = new com.alibaba.fastjson.parser.DefaultJSONParser("97");
|
||||||
|
com.alibaba.fastjson.parser.JSONLexer jSONLexer3 = defaultJSONParser2.getLexer();
|
||||||
|
java.lang.Object obj4 = defaultJSONParser2.input;
|
||||||
|
java.lang.String[] strArray7 = new java.lang.String[] { "fastjson.parser.safeMode", "fastjson.parser.safeMode" };
|
||||||
|
java.util.LinkedHashSet<java.lang.String> strSet8 = new java.util.LinkedHashSet<java.lang.String>();
|
||||||
|
boolean boolean9 = java.util.Collections.addAll((java.util.Collection<java.lang.String>) strSet8, strArray7);
|
||||||
|
java.util.Set<java.lang.String> strSet12 = java.util.Set.of("fastjson.parser.safeMode", "");
|
||||||
|
boolean boolean13 = strSet8.removeAll((java.util.Collection<java.lang.String>) strSet12);
|
||||||
|
java.util.List<java.lang.constant.ConstantDesc> constantDescList14 = java.util.List.copyOf((java.util.Collection<java.lang.String>) strSet8);
|
||||||
|
boolean boolean16 = constantDescList14.contains((java.lang.Object) 100);
|
||||||
|
defaultJSONParser2.checkListResolve((java.util.Collection) constantDescList14);
|
||||||
|
java.util.Map.Entry<java.util.Comparator<java.lang.String>, java.lang.AutoCloseable> strComparatorEntry18 = java.util.Map.entry(strComparator0, (java.lang.AutoCloseable) defaultJSONParser2);
|
||||||
|
// during test generation this statement threw an exception of type java.lang.NullPointerException in error
|
||||||
|
com.alibaba.fastjson.parser.DefaultJSONParser.ResolveTask resolveTask19 = defaultJSONParser2.getLastResolveTask();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,8 @@
|
|||||||
|
import org.junit.runner.RunWith;
|
||||||
|
import org.junit.runners.Suite;
|
||||||
|
|
||||||
|
@RunWith(Suite.class)
|
||||||
|
@Suite.SuiteClasses({ RegressionTest0.class, RegressionTest1.class, RegressionTest2.class })
|
||||||
|
public class RegressionTest {
|
||||||
|
}
|
||||||
|
|
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
@ -0,0 +1,16 @@
|
|||||||
|
com.alibaba.fastjson.JSONPath
|
||||||
|
com.alibaba.fastjson.JSONAware
|
||||||
|
com.alibaba.fastjson.parser.DefaultJSONParser
|
||||||
|
com.alibaba.fastjson.parser.Feature
|
||||||
|
com.alibaba.fastjson.parser.ParserConfig
|
||||||
|
com.alibaba.fastjson.parser.deserializer.JavaBeanDeserializer
|
||||||
|
com.alibaba.fastjson.serializer.JavaBeanSerializer
|
||||||
|
com.alibaba.fastjson.serializer.SerializeConfig
|
||||||
|
java.lang.Class
|
||||||
|
java.lang.Object
|
||||||
|
java.lang.String
|
||||||
|
java.lang.reflect.Type
|
||||||
|
java.util.Collection
|
||||||
|
java.util.List
|
||||||
|
java.util.Map
|
||||||
|
java.util.Set
|
@ -0,0 +1,6 @@
|
|||||||
|
~/fastjson$ mvn clean compile
|
||||||
|
~/fastjson$ cd ~/testing
|
||||||
|
~/testing$ # generate dependency class list
|
||||||
|
~/testing$ jdeps -apionly -v -R -cp ~/fastjson/target/classes/com/alibaba/fastjson ~/fastjson/target/classes/com/alibaba/fastjson/JSONPath.class | grep -v '^[A-Za-z]' | sed -E 's/^.* -> ([^ ]+) .*$/\1/' | sort | uniq > JSONPath.txt
|
||||||
|
~/testing$ # invoke randoop gentests
|
||||||
|
~/testing$ java -Xmx3000m -classpath ~/fastjson/target/classes/com/alibaba/fastjson:${RANDOOP_JAR} randoop.main.Main gentests --classlist=JSONPath.txt --time-limit=90
|
Loading…
Reference in New Issue
Block a user