User: juhalindfors
Date: 02/01/24 14:15:41
Added: src/main/test/compliance/server/support BabarError.java
ExceptionOnTheRun.java MyScreamingException.java
Test.java TestMBean.java
Log:
exception tests
Revision Changes Path
1.1 jmx/src/main/test/compliance/server/support/BabarError.java
Index: BabarError.java
===================================================================
/*
* JBoss, the OpenSource J2EE webOS
*
* Distributable under LGPL license.
* See terms of license at gnu.org.
*/
package test.compliance.server.support;
/**
* <description>
*
* @see <related>
*
* @author <a href="mailto:[EMAIL PROTECTED]">Juha Lindfors</a>.
* @version $Revision: 1.1 $
*
*/
public class BabarError
extends Error
{
}
1.1
jmx/src/main/test/compliance/server/support/ExceptionOnTheRun.java
Index: ExceptionOnTheRun.java
===================================================================
/*
* JBoss, the OpenSource J2EE webOS
*
* Distributable under LGPL license.
* See terms of license at gnu.org.
*/
package test.compliance.server.support;
/**
* <description>
*
* @see <related>
*
* @author <a href="mailto:[EMAIL PROTECTED]">Juha Lindfors</a>.
* @version $Revision: 1.1 $
*
*/
public class ExceptionOnTheRun
extends RuntimeException
{
}
1.1
jmx/src/main/test/compliance/server/support/MyScreamingException.java
Index: MyScreamingException.java
===================================================================
/*
* JBoss, the OpenSource J2EE webOS
*
* Distributable under LGPL license.
* See terms of license at gnu.org.
*/
package test.compliance.server.support;
/**
* <description>
*
* @see <related>
*
* @author <a href="mailto:[EMAIL PROTECTED]">Juha Lindfors</a>.
* @version $Revision: 1.1 $
*
*/
public class MyScreamingException
extends Exception
{
}
1.1 jmx/src/main/test/compliance/server/support/Test.java
Index: Test.java
===================================================================
/*
* JBoss, the OpenSource J2EE webOS
*
* Distributable under LGPL license.
* See terms of license at gnu.org.
*/
package test.compliance.server.support;
/**
* <description>
*
* @see <related>
*
* @author <a href="mailto:[EMAIL PROTECTED]">Juha Lindfors</a>.
* @version $Revision: 1.1 $
*
*/
public class Test
implements TestMBean
{
public String getThisWillScream() throws MyScreamingException
{
throw new MyScreamingException();
}
public void setThisWillScream(String str) throws MyScreamingException
{
throw new MyScreamingException();
}
public String getThrowUncheckedException()
{
throw new ExceptionOnTheRun();
}
public void setThrowUncheckedException(String str)
{
throw new ExceptionOnTheRun();
}
public String getError()
{
throw new BabarError();
}
public void setError(String str)
{
throw new BabarError();
}
public void setAStringAttribute(String str)
{
}
public void operationWithException() throws MyScreamingException
{
throw new MyScreamingException();
}
}
1.1 jmx/src/main/test/compliance/server/support/TestMBean.java
Index: TestMBean.java
===================================================================
/*
* JBoss, the OpenSource J2EE webOS
*
* Distributable under LGPL license.
* See terms of license at gnu.org.
*/
package test.compliance.server.support;
/**
* <description>
*
* @see <related>
*
* @author <a href="mailto:[EMAIL PROTECTED]">Juha Lindfors</a>.
* @version $Revision: 1.1 $
*
*/
public interface TestMBean
{
public String getThisWillScream() throws MyScreamingException;
public void setThisWillScream(String str) throws MyScreamingException;
public String getThrowUncheckedException();
public void setThrowUncheckedException(String str);
public String getError();
public void setError(String str);
public void setAStringAttribute(String str);
public void operationWithException() throws MyScreamingException;
}
_______________________________________________
Jboss-development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development