Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
WELD-1571 Testcase
  • Loading branch information
Matej Briskar authored and jharting committed Jan 7, 2014
1 parent ff83cfd commit 4d7351e
Show file tree
Hide file tree
Showing 3 changed files with 46 additions and 0 deletions.
@@ -0,0 +1,8 @@
package org.jboss.weld.tests.proxy.superclass;

public class NotSimpleConstructorClass {


public NotSimpleConstructorClass(String value) {
}
}
@@ -0,0 +1,12 @@
package org.jboss.weld.tests.proxy.superclass;

import javax.enterprise.context.ApplicationScoped;

@ApplicationScoped
public class SimpleBean extends NotSimpleConstructorClass {

public SimpleBean() {
super("nothing");
}

}
@@ -0,0 +1,26 @@
package org.jboss.weld.tests.proxy.superclass;

import javax.inject.Inject;

import org.jboss.arquillian.container.test.api.Deployment;
import org.jboss.arquillian.junit.Arquillian;
import org.jboss.shrinkwrap.api.Archive;
import org.jboss.shrinkwrap.api.BeanArchive;
import org.jboss.shrinkwrap.api.ShrinkWrap;
import org.junit.Test;
import org.junit.runner.RunWith;

@RunWith(Arquillian.class)
public class SuperclassWithConstructorWithArgumentsTest {
@Deployment
public static Archive<?> deploy() {
return ShrinkWrap.create(BeanArchive.class).addPackage(SuperclassWithConstructorWithArgumentsTest.class.getPackage());
}

@Inject
private SimpleBean bean;

@Test
public void testSuperClassWithoutSimpleConstructor() {
}
}

0 comments on commit 4d7351e

Please sign in to comment.