Skip to content

Commit

Permalink
Pass 330 TCK unmodified
Browse files Browse the repository at this point in the history
git-svn-id: http://anonsvn.jboss.org/repos/weld/ri/trunk@3841 1c488680-804c-0410-94cd-c6b725194a0e
  • Loading branch information
pmuir committed Oct 4, 2009
1 parent 0633b6f commit 9c8176e
Show file tree
Hide file tree
Showing 16 changed files with 788 additions and 2 deletions.
@@ -0,0 +1,47 @@
/*
* JBoss, Home of Professional Open Source
* Copyright 2008, Red Hat Middleware LLC, and individual contributors
* by the @authors tag. See the copyright.txt in the distribution for a
* full listing of individual contributors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
* http://www.apache.org/licenses/LICENSE-2.0
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/

package org.jboss.webbeans.atinject.tck;

import static java.lang.annotation.ElementType.FIELD;
import static java.lang.annotation.ElementType.METHOD;
import static java.lang.annotation.ElementType.PARAMETER;
import static java.lang.annotation.ElementType.TYPE;
import static java.lang.annotation.RetentionPolicy.RUNTIME;

import java.lang.annotation.Documented;
import java.lang.annotation.Retention;
import java.lang.annotation.Target;

import javax.inject.Qualifier;

/**
* A built-in binding type that is implicitly applied to all beans which do not
* have the {@link New} built-in binding type.
*
* @author Gavin King
* @author David Allen
*/

@Qualifier
@Retention(RUNTIME)
@Target( { TYPE, METHOD, FIELD, PARAMETER })
@Documented
public @interface Any
{

}
Expand Up @@ -15,6 +15,7 @@
import org.atinject.tck.auto.Tire;
import org.atinject.tck.auto.V8Engine;
import org.atinject.tck.auto.accessories.Cupholder;
import org.atinject.tck.auto.accessories.SpareTire;
import org.jboss.webbeans.mock.MockEELifecycle;
import org.jboss.webbeans.mock.TestContainer;

Expand All @@ -36,6 +37,7 @@ public class AtInjectTCK
Cupholder.class,
FuelTank.class,
Tire.class,
SpareTire.class,
// Two producer method which allow us to expose SpareTire and Drivers seat with qualifiers
DriversSeatProducer.class,
SpareTireProducer.class
Expand All @@ -58,6 +60,7 @@ public static Test suite()
// Obtain a reference to the Car and pass it to the TCK to generate the testsuite
Bean<?> bean = beanManager.resolve(beanManager.getBeans(Car.class));
Car instance = (Car) beanManager.getReference(bean, Car.class, beanManager.createCreationalContext(bean));

return Tck.testsFor(instance, false /* supportsStatic */, true /* supportsPrivate */);
}
}

0 comments on commit 9c8176e

Please sign in to comment.