SystemException extends RuntimeException { @Override public String getMessage() { if (this.message == null) { return this.errorCode; } return this.message; } SystemException(Throwable cause);  SystemException(Throwable cause,
                            String errorCode);  SystemException(Throwable cause,
                            String errorCode,
                            String[] optionStrings);  SystemException(Throwable cause,
                            String errorCode,
                            String s0);  SystemException(Throwable cause,
                            String errorCode,
                            String s0,
                            String s1);  SystemException(Throwable cause,
                            String errorCode,
                            String s0,
                            String s1,
                            String s2);  SystemException(Throwable cause,
                            String errorCode,
                            String s0,
                            String s1,
                            String s2,
                            String s3); String getErrorCode(); String[] getOptions(); void setMessage(String message); @Override String getMessage();  }
@Test public void testSystemExceptionThrowable01() throws Exception { Throwable cause = new Throwable("testException"); se1 = new SystemException(cause); String throwWord = ((Throwable) ReflectionTestUtils.getField(se1, "cause")).getMessage(); String errorCode = (String) ReflectionTestUtils.getField(se1, "errorCode"); assertEquals("testException", throwWord); assertEquals("", errorCode); }
@Test public void testSystemExceptionThrowable02() throws Exception { Throwable cause = new Throwable(""); se1 = new SystemException(cause); String throwWord = ((Throwable) ReflectionTestUtils.getField(se1, "cause")).getMessage(); String errorCode = (String) ReflectionTestUtils.getField(se1, "errorCode"); assertEquals("", throwWord); assertEquals("", errorCode); }
@Test public void testSystemExceptionThrowableString01() throws Exception { Throwable cause = new Throwable("testException"); String errorCode = "test01"; se1 = new SystemException(cause, errorCode); String throwWord = ((Throwable) ReflectionTestUtils.getField(se1, "cause")).getMessage(); errorCode = (String) ReflectionTestUtils.getField(se1, "errorCode"); assertEquals("testException", throwWord); assertEquals("test01", errorCode); }
@Test public void testSystemExceptionThrowableString02() throws Exception { Throwable cause = new Throwable("testException"); se1 = new SystemException(cause, ""); String throwWord = ((Throwable) ReflectionTestUtils.getField(se1, "cause")).getMessage(); String errorCode = (String) ReflectionTestUtils.getField(se1, "errorCode"); assertEquals("testException", throwWord); assertEquals("", errorCode); }
@Test public void testSystemExceptionThrowableString03() throws Exception { Throwable cause = new Throwable("testException"); se1 = new SystemException(cause, null); String throwWord = ((Throwable) ReflectionTestUtils.getField(se1, "cause")).getMessage(); String errorCode = (String) ReflectionTestUtils.getField(se1, "errorCode"); assertEquals("testException", throwWord); assertNull(errorCode); }
@Test public void testSystemExceptionThrowableStringStringArray02() throws Exception { Throwable cause = new Throwable("testException"); String[] optionStrings = { "a", "b" }; se1 = new SystemException(cause, "", optionStrings); String throwWord = ((Throwable) ReflectionTestUtils.getField(se1, "cause")).getMessage(); String errorCode = (String) ReflectionTestUtils.getField(se1, "errorCode"); String[] options = (String[]) ReflectionTestUtils.getField(se1, "options"); assertEquals("testException", throwWord); assertEquals("", errorCode); assertEquals("a", options[0]); assertEquals("b", options[1]); }
@Test public void testSystemExceptionThrowableStringStringArray03() throws Exception { Throwable cause = new Throwable("testException"); String[] optionStrings = { "a", "b", "c" }; se1 = new SystemException(cause, null, optionStrings); String throwWord = ((Throwable) ReflectionTestUtils.getField(se1, "cause")).getMessage(); String errorCode = (String) ReflectionTestUtils.getField(se1, "errorCode"); String[] options = (String[]) ReflectionTestUtils.getField(se1, "options"); assertEquals("testException", throwWord); assertNull(errorCode); assertEquals("a", options[0]); assertEquals("b", options[1]); assertEquals("c", options[2]); }
@Test public void testSystemExceptionThrowableStringStringArray04() throws Exception { Throwable cause = new Throwable("testException"); String[] optionStrings = null; se1 = new SystemException(cause, "", optionStrings); String throwWord = ((Throwable) ReflectionTestUtils.getField(se1, "cause")).getMessage(); String errorCode = (String) ReflectionTestUtils.getField(se1, "errorCode"); String[] options = (String[]) ReflectionTestUtils.getField(se1, "options"); assertEquals("testException", throwWord); assertEquals("", errorCode); assertNull(options); }
@Test public void testSystemExceptionThrowableStringStringArray05() throws Exception { Throwable cause = new Throwable("testException"); String[] optionStrings = { "", "", "" }; se1 = new SystemException(cause, null, optionStrings); String throwWord = ((Throwable) ReflectionTestUtils.getField(se1, "cause")).getMessage(); String errorCode = (String) ReflectionTestUtils.getField(se1, "errorCode"); String[] options = (String[]) ReflectionTestUtils.getField(se1, "options"); assertEquals("testException", throwWord); assertEquals(null, errorCode); assertEquals("", options[0]); assertEquals("", options[1]); assertEquals("", options[2]); }
@Test public void testSystemExceptionThrowableStringStringArray06() throws Exception { Throwable cause = new Throwable("testException"); String errorCode = "test01"; String[] optionStrings = { null, null, null }; se1 = new SystemException(cause, errorCode, optionStrings); String throwWord = ((Throwable) ReflectionTestUtils.getField(se1, "cause")).getMessage(); errorCode = (String) ReflectionTestUtils.getField(se1, "errorCode"); String[] options = (String[]) ReflectionTestUtils.getField(se1, "options"); assertEquals("testException", throwWord); assertEquals("test01", errorCode); assertNull(options[0]); assertNull(options[1]); assertNull(options[2]); }
@Test public void testSystemExceptionThrowableStringStringArray07() throws Exception { Throwable cause = new Throwable("testException"); String errorCode = "test01"; String[] optionStrings = { "a", "", null }; se1 = new SystemException(cause, errorCode, optionStrings); String throwWord = ((Throwable) ReflectionTestUtils.getField(se1, "cause")).getMessage(); errorCode = (String) ReflectionTestUtils.getField(se1, "errorCode"); String[] options = (String[]) ReflectionTestUtils.getField(se1, "options"); assertEquals("testException", throwWord); assertEquals("test01", errorCode); assertEquals("a", options[0]); assertEquals("", options[1]); assertNull(options[2]); }
@Test public void testSystemExceptionThrowableStringString01() throws Exception { Throwable cause = new Throwable("testException"); String errorCode = "test01"; String s0 = "a"; se1 = new SystemException(cause, errorCode, s0); String throwWord = ((Throwable) ReflectionTestUtils.getField(se1, "cause")).getMessage(); errorCode = (String) ReflectionTestUtils.getField(se1, "errorCode"); String[] options = (String[]) ReflectionTestUtils.getField(se1, "options"); assertEquals("testException", throwWord); assertEquals("test01", errorCode); assertEquals("a", options[0]); }
@Test public void testSystemExceptionThrowableStringString02() throws Exception { Throwable cause = new Throwable("testException"); se1 = new SystemException(cause, "", ""); String throwWord = ((Throwable) ReflectionTestUtils.getField(se1, "cause")).getMessage(); String errorCode = (String) ReflectionTestUtils.getField(se1, "errorCode"); String[] options = (String[]) ReflectionTestUtils.getField(se1, "options"); assertEquals("testException", throwWord); assertEquals("", errorCode); assertEquals("", options[0]); }
@Test public void testSystemExceptionThrowableStringString03() throws Exception { Throwable cause = new Throwable("testException"); String s0 = null; se1 = new SystemException(cause, null, s0); String throwWord = ((Throwable) ReflectionTestUtils.getField(se1, "cause")).getMessage(); String errorCode = (String) ReflectionTestUtils.getField(se1, "errorCode"); String[] options = (String[]) ReflectionTestUtils.getField(se1, "options"); assertEquals("testException", throwWord); assertNull(errorCode); assertNull(options[0]); }
@Test public void testSystemExceptionThrowableStringStringString01() throws Exception { Throwable cause = new Throwable("testException"); String errorCode = "test01"; String s0 = "a"; String s1 = "b"; se1 = new SystemException(cause, errorCode, s0, s1); String throwWord = ((Throwable) ReflectionTestUtils.getField(se1, "cause")).getMessage(); errorCode = (String) ReflectionTestUtils.getField(se1, "errorCode"); String[] options = (String[]) ReflectionTestUtils.getField(se1, "options"); assertEquals("testException", throwWord); assertEquals("test01", errorCode); assertEquals("a", options[0]); assertEquals("b", options[1]); }
@Test public void testSystemExceptionThrowableStringStringString02() throws Exception { Throwable cause = new Throwable("testException"); String errorCode = "test01"; se1 = new SystemException(cause, errorCode, "", ""); String throwWord = ((Throwable) ReflectionTestUtils.getField(se1, "cause")).getMessage(); errorCode = (String) ReflectionTestUtils.getField(se1, "errorCode"); String[] options = (String[]) ReflectionTestUtils.getField(se1, "options"); assertEquals("testException", throwWord); assertEquals("test01", errorCode); assertEquals("", options[0]); assertEquals("", options[1]); }
@Test public void testSystemExceptionThrowableStringStringString03() throws Exception { Throwable cause = new Throwable("testException"); se1 = new SystemException(cause, "", null, null); String throwWord = ((Throwable) ReflectionTestUtils.getField(se1, "cause")).getMessage(); String errorCode = (String) ReflectionTestUtils.getField(se1, "errorCode"); String[] options = (String[]) ReflectionTestUtils.getField(se1, "options"); assertEquals("testException", throwWord); assertEquals("", errorCode); assertNull(options[0]); assertNull(options[1]); }
@Test public void testSystemExceptionThrowableStringStringString04() throws Exception { Throwable cause = new Throwable("testException"); String s1 = "a"; se1 = new SystemException(cause, null, "", s1); String throwWord = ((Throwable) ReflectionTestUtils.getField(se1, "cause")).getMessage(); String errorCode = (String) ReflectionTestUtils.getField(se1, "errorCode"); String[] options = (String[]) ReflectionTestUtils.getField(se1, "options"); assertEquals("testException", throwWord); assertNull(errorCode); assertEquals("", options[0]); assertEquals("a", options[1]); }
@Test public void testSystemExceptionThrowableStringStringString05() throws Exception { Throwable cause = new Throwable("testException"); String errorCode = "test01"; String s1 = "a"; se1 = new SystemException(cause, errorCode, null, s1); String throwWord = ((Throwable) ReflectionTestUtils.getField(se1, "cause")).getMessage(); errorCode = (String) ReflectionTestUtils.getField(se1, "errorCode"); String[] options = (String[]) ReflectionTestUtils.getField(se1, "options"); assertEquals("testException", throwWord); assertEquals("test01", errorCode); assertNull(options[0]); assertEquals("a", options[1]); }
@Test public void testSystemExceptionThrowableStringStringStringString01() throws Exception { Throwable cause = new Throwable("testException"); String errorCode = "test01"; String s0 = "a"; String s1 = "b"; String s2 = "c"; se1 = new SystemException(cause, errorCode, s0, s1, s2); String throwWord = ((Throwable) ReflectionTestUtils.getField(se1, "cause")).getMessage(); errorCode = (String) ReflectionTestUtils.getField(se1, "errorCode"); String[] options = (String[]) ReflectionTestUtils.getField(se1, "options"); assertEquals("testException", throwWord); assertEquals("test01", errorCode); assertEquals("a", options[0]); assertEquals("b", options[1]); assertEquals("c", options[2]); }
@Test public void testSystemExceptionThrowableStringStringStringString02() throws Exception { Throwable cause = new Throwable("testException"); se1 = new SystemException(cause, "", "", "", ""); String throwWord = ((Throwable) ReflectionTestUtils.getField(se1, "cause")).getMessage(); String errorCode = (String) ReflectionTestUtils.getField(se1, "errorCode"); String[] options = (String[]) ReflectionTestUtils.getField(se1, "options"); assertEquals("testException", throwWord); assertEquals("", errorCode); assertEquals("", options[0]); assertEquals("", options[1]); assertEquals("", options[2]); }
@Test public void testSystemExceptionThrowableStringStringStringString03() throws Exception { Throwable cause = new Throwable("testException"); se1 = new SystemException(cause, null, null, null, null); String throwWord = ((Throwable) ReflectionTestUtils.getField(se1, "cause")).getMessage(); String errorCode = (String) ReflectionTestUtils.getField(se1, "errorCode"); String[] options = (String[]) ReflectionTestUtils.getField(se1, "options"); assertEquals("testException", throwWord); assertNull(errorCode); assertNull(options[0]); assertNull(options[1]); assertNull(options[2]); }
@Test public void testSystemExceptionThrowableStringStringStringString04() throws Exception { Throwable cause = new Throwable("testException"); String errorCode = "test01"; String s0 = "a"; se1 = new SystemException(cause, errorCode, s0, "", null); String throwWord = ((Throwable) ReflectionTestUtils.getField(se1, "cause")).getMessage(); errorCode = (String) ReflectionTestUtils.getField(se1, "errorCode"); String[] options = (String[]) ReflectionTestUtils.getField(se1, "options"); assertEquals("testException", throwWord); assertEquals("test01", errorCode); assertEquals("a", options[0]); assertEquals("", options[1]); assertNull(options[2]); }
@Test public void testSystemExceptionThrowableStringStringStringStringString01() throws Exception { Throwable cause = new Throwable("testException"); String s0 = "a"; String s1 = "b"; String s2 = "c"; String s3 = "d"; se1 = new SystemException(cause, null, s0, s1, s2, s3); String throwWord = ((Throwable) ReflectionTestUtils.getField(se1, "cause")).getMessage(); String errorCode = (String) ReflectionTestUtils.getField(se1, "errorCode"); String[] options = (String[]) ReflectionTestUtils.getField(se1, "options"); assertEquals("testException", throwWord); assertNull(errorCode); assertEquals("a", options[0]); assertEquals("b", options[1]); assertEquals("c", options[2]); assertEquals("d", options[3]); }
@Test public void testSystemExceptionThrowableStringStringStringStringString02() throws Exception { Throwable cause = new Throwable("testException"); String errorCode = "test01"; se1 = new SystemException(cause, errorCode, "", "", "", ""); String throwWord = ((Throwable) ReflectionTestUtils.getField(se1, "cause")).getMessage(); errorCode = (String) ReflectionTestUtils.getField(se1, "errorCode"); String[] options = (String[]) ReflectionTestUtils.getField(se1, "options"); assertEquals("testException", throwWord); assertEquals("test01", errorCode); assertEquals("", options[0]); assertEquals("", options[1]); assertEquals("", options[2]); assertEquals("", options[3]); }
@Test public void testSystemExceptionThrowableStringStringStringStringString03() throws Exception { Throwable cause = new Throwable("testException"); se1 = new SystemException(cause, "", null, null, null, null); String throwWord = ((Throwable) ReflectionTestUtils.getField(se1, "cause")).getMessage(); String errorCode = (String) ReflectionTestUtils.getField(se1, "errorCode"); String[] options = (String[]) ReflectionTestUtils.getField(se1, "options"); assertEquals("testException", throwWord); assertEquals("", errorCode); assertNull(options[0]); assertNull(options[1]); assertNull(options[2]); assertNull(options[3]); }
@Test public void testSystemExceptionThrowableStringStringStringStringString04() throws Exception { Throwable cause = new Throwable("testException"); String s0 = "a"; String s1 = "b"; se1 = new SystemException(cause, null, s0, s1, "", null); String throwWord = ((Throwable) ReflectionTestUtils.getField(se1, "cause")).getMessage(); String errorCode = (String) ReflectionTestUtils.getField(se1, "errorCode"); String[] options = (String[]) ReflectionTestUtils.getField(se1, "options"); assertEquals("testException", throwWord); assertNull(errorCode); assertEquals("a", options[0]); assertEquals("b", options[1]); assertEquals("", options[2]); assertNull(options[3]); }
@Test public void testGetMessage01() throws Exception { Throwable cause = new Throwable("testException"); se1 = new SystemException(cause); ReflectionTestUtils.setField(se1, "message", "abc"); assertEquals("abc", se1.getMessage()); }
@Test public void testGetMessage02() throws Exception { Throwable cause = new Throwable("testException"); se1 = new SystemException(cause); ReflectionTestUtils.setField(se1, "message", null); ReflectionTestUtils.setField(se1, "errorCode", "def"); assertEquals("def", se1.getMessage()); }