|
From: Ales J. <ale...@ge...> - 2006-07-09 15:54:47
|
User: alesj
Date: 06/07/09 11:54:44
Added: src/test/org/jboss/spring/test/ear/business
SessionTestBean.java SessionTestBeanImpl.java
SessionTestBeanLocal.java
SessionTestBeanRemote.java
Log:
Spring Unit Test.
Revision Changes Path
1.1 date: 2006/07/09 15:54:44; author: alesj; state: Exp;jboss-spring/src/test/org/jboss/spring/test/ear/business/SessionTestBean.java
Index: SessionTestBean.java
===================================================================
/*
* JBoss, Home of Professional Open Source
* Copyright 2005, JBoss Inc., and individual contributors as indicated
* by the @authors tag. See the copyright.txt in the distribution for a
* full listing of individual contributors.
*
* This is free software; you can redistribute it and/or modify it
* under the terms of the GNU Lesser General Public License as
* published by the Free Software Foundation; either version 2.1 of
* the License, or (at your option) any later version.
*
* This software is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this software; if not, write to the Free
* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
* 02110-1301 USA, or see the FSF site: http://www.fsf.org.
*/
package org.jboss.spring.test.ear.business;
import org.jboss.spring.test.ear.pojo.Tester;
/**
* @author <a href="mailto:ale...@ge...">Ales Justin</a>
*/
public interface SessionTestBean
{
Tester getTester();
}
1.1 date: 2006/07/09 15:54:44; author: alesj; state: Exp;jboss-spring/src/test/org/jboss/spring/test/ear/business/SessionTestBeanImpl.java
Index: SessionTestBeanImpl.java
===================================================================
/*
* JBoss, Home of Professional Open Source
* Copyright 2005, JBoss Inc., and individual contributors as indicated
* by the @authors tag. See the copyright.txt in the distribution for a
* full listing of individual contributors.
*
* This is free software; you can redistribute it and/or modify it
* under the terms of the GNU Lesser General Public License as
* published by the Free Software Foundation; either version 2.1 of
* the License, or (at your option) any later version.
*
* This software is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this software; if not, write to the Free
* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
* 02110-1301 USA, or see the FSF site: http://www.fsf.org.
*/
package org.jboss.spring.test.ear.business;
import org.jboss.annotation.spring.Spring;
import org.jboss.spring.test.ear.pojo.Tester;
import javax.ejb.Stateless;
/**
* @author <a href="mailto:ale...@ge...">Ales Justin</a>
*/
@Stateless
public class SessionTestBeanImpl implements SessionTestBeanLocal, SessionTestBeanRemote
{
@Spring(jndiName = "test", bean = "tester")
private Tester tester;
public Tester getTester()
{
return tester;
}
}
1.1 date: 2006/07/09 15:54:44; author: alesj; state: Exp;jboss-spring/src/test/org/jboss/spring/test/ear/business/SessionTestBeanLocal.java
Index: SessionTestBeanLocal.java
===================================================================
/*
* JBoss, Home of Professional Open Source
* Copyright 2005, JBoss Inc., and individual contributors as indicated
* by the @authors tag. See the copyright.txt in the distribution for a
* full listing of individual contributors.
*
* This is free software; you can redistribute it and/or modify it
* under the terms of the GNU Lesser General Public License as
* published by the Free Software Foundation; either version 2.1 of
* the License, or (at your option) any later version.
*
* This software is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this software; if not, write to the Free
* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
* 02110-1301 USA, or see the FSF site: http://www.fsf.org.
*/
package org.jboss.spring.test.ear.business;
import javax.ejb.Local;
/**
* @author <a href="mailto:ale...@ge...">Ales Justin</a>
*/
@Local
public interface SessionTestBeanLocal extends SessionTestBean
{
}
1.1 date: 2006/07/09 15:54:44; author: alesj; state: Exp;jboss-spring/src/test/org/jboss/spring/test/ear/business/SessionTestBeanRemote.java
Index: SessionTestBeanRemote.java
===================================================================
/*
* JBoss, Home of Professional Open Source
* Copyright 2005, JBoss Inc., and individual contributors as indicated
* by the @authors tag. See the copyright.txt in the distribution for a
* full listing of individual contributors.
*
* This is free software; you can redistribute it and/or modify it
* under the terms of the GNU Lesser General Public License as
* published by the Free Software Foundation; either version 2.1 of
* the License, or (at your option) any later version.
*
* This software is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this software; if not, write to the Free
* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
* 02110-1301 USA, or see the FSF site: http://www.fsf.org.
*/
package org.jboss.spring.test.ear.business;
import javax.ejb.Remote;
/**
* @author <a href="mailto:ale...@ge...">Ales Justin</a>
*/
@Remote
public interface SessionTestBeanRemote extends SessionTestBean
{
}
|