📄 invalidticketexceptiontests.java
字号:
/* * Copyright 2004 The JA-SIG Collaborative. All rights reserved. See license * distributed with this file and available online at * http://www.ja-sig.org/products/cas/overview/license/ */package org.jasig.cas.ticket;import org.jasig.cas.authentication.handler.AuthenticationException;import org.jasig.cas.authentication.handler.BadCredentialsAuthenticationException;import junit.framework.TestCase;public class InvalidTicketExceptionTests extends TestCase { public void testCodeNoThrowable() { TicketException t = new InvalidTicketException(); assertEquals("INVALID_TICKET", t.getCode()); } public void testCodeWithThrowable() { AuthenticationException a = new BadCredentialsAuthenticationException(); TicketException t = new InvalidTicketException(a); assertEquals(a.toString(), t.getCode()); }}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -