github.com/tursom/GoCollections@v0.3.10/exceptions/RuntimeException_test.go (about) 1 /* 2 * Copyright (c) 2022 tursom. All rights reserved. 3 * Use of this source code is governed by a GPL-3 4 * license that can be found in the LICENSE file. 5 */ 6 7 package exceptions 8 9 import ( 10 "testing" 11 ) 12 13 func TestRuntimeException_PrintStackTrace(t *testing.T) { 14 exception := NewRuntimeException("test1", DefaultExceptionConfig().SetCause(1)) 15 exception = NewRuntimeException("test2", DefaultExceptionConfig().SetCause(exception)) 16 exception = NewRuntimeException("", DefaultExceptionConfig().SetCause(exception)) 17 exception.PrintStackTrace() 18 }