authenticationtest.java.svn-base

来自「EJB3 Annotation Sample」· SVN-BASE 代码 · 共 30 行

SVN-BASE
30
字号
/* * To change this template, choose Tools | Templates * and open the template in the editor. */package com.s7turn.contents.test;import com.bm.testsuite.BaseSessionBeanFixture;import com.s7turn.security.entity.Account;import com.s7turn.security.session.AuthenicateServiceBean;import java.rmi.RemoteException;/** * * @author Long */public class AuthenticationTest extends BaseSessionBeanFixture<AuthenicateServiceBean>{    public AuthenticationTest()    {        super( AuthenicateServiceBean.class, new Class[]{Account.class} );    }        public void testLogin() throws RemoteException    {        String[] roles = this.getBeanToTest().authenicate("admin", "admin");        assertTrue( roles != null && roles.length > 0 );    }}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?