Skip to content

Commit

Permalink
add expected exception
Browse files Browse the repository at this point in the history
  • Loading branch information
pmuir committed Feb 16, 2010
1 parent ca09d47 commit f770fe5
Showing 1 changed file with 3 additions and 1 deletion.
Expand Up @@ -16,6 +16,8 @@
*/
package org.jboss.weld.tests.serialization;

import javax.enterprise.inject.IllegalProductException;

import org.jboss.testharness.impl.packaging.Artifact;
import org.jboss.weld.test.AbstractWeldTest;
import org.jboss.weld.test.Utils;
Expand All @@ -42,7 +44,7 @@ public void testConversationManagerSerializable()
assert deserializedCMgr.getConversationInstance().get() != null;
}

@Test(description="http://lists.jboss.org/pipermail/weld-dev/2010-February/002265.html")
@Test(description="http://lists.jboss.org/pipermail/weld-dev/2010-February/002265.html", expectedExceptions=IllegalProductException.class)
public void testNonSerializableProductInjectedIntoSessionScopedBean()
{
getReference(LoggerConsumer.class).ping();
Expand Down

0 comments on commit f770fe5

Please sign in to comment.