Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 65854200BEF for ; Wed, 4 Jan 2017 16:55:56 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id 63F49160B3A; Wed, 4 Jan 2017 15:55:56 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id AB8AD160B39 for ; Wed, 4 Jan 2017 16:55:55 +0100 (CET) Received: (qmail 17341 invoked by uid 500); 4 Jan 2017 15:55:54 -0000 Mailing-List: contact commits-help@openwebbeans.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@openwebbeans.apache.org Delivered-To: mailing list commits@openwebbeans.apache.org Received: (qmail 17330 invoked by uid 99); 4 Jan 2017 15:55:54 -0000 Received: from Unknown (HELO svn01-us-west.apache.org) (209.188.14.144) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 04 Jan 2017 15:55:54 +0000 Received: from svn01-us-west.apache.org (localhost [127.0.0.1]) by svn01-us-west.apache.org (ASF Mail Server at svn01-us-west.apache.org) with ESMTP id DB2713A1E65 for ; Wed, 4 Jan 2017 15:55:53 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r1777329 - in /openwebbeans/meecrowave/trunk/meecrowave-core/src/test: java/org/apache/meecrowave/Classes.java third-party/ third-party/OtherEndpoint.java third-party/OtherFilter.java Date: Wed, 04 Jan 2017 15:55:53 -0000 To: commits@openwebbeans.apache.org From: rmannibucau@apache.org X-Mailer: svnmailer-1.0.9 Message-Id: <20170104155553.DB2713A1E65@svn01-us-west.apache.org> archived-at: Wed, 04 Jan 2017 15:55:56 -0000 Author: rmannibucau Date: Wed Jan 4 15:55:52 2017 New Revision: 1777329 URL: http://svn.apache.org/viewvc?rev=1777329&view=rev Log: adding actual sources of Classes classes Added: openwebbeans/meecrowave/trunk/meecrowave-core/src/test/third-party/ openwebbeans/meecrowave/trunk/meecrowave-core/src/test/third-party/OtherEndpoint.java openwebbeans/meecrowave/trunk/meecrowave-core/src/test/third-party/OtherFilter.java Modified: openwebbeans/meecrowave/trunk/meecrowave-core/src/test/java/org/apache/meecrowave/Classes.java Modified: openwebbeans/meecrowave/trunk/meecrowave-core/src/test/java/org/apache/meecrowave/Classes.java URL: http://svn.apache.org/viewvc/openwebbeans/meecrowave/trunk/meecrowave-core/src/test/java/org/apache/meecrowave/Classes.java?rev=1777329&r1=1777328&r2=1777329&view=diff ============================================================================== --- openwebbeans/meecrowave/trunk/meecrowave-core/src/test/java/org/apache/meecrowave/Classes.java (original) +++ openwebbeans/meecrowave/trunk/meecrowave-core/src/test/java/org/apache/meecrowave/Classes.java Wed Jan 4 15:55:52 2017 @@ -31,6 +31,7 @@ import java.io.OutputStream; import static org.junit.Assert.fail; // some in memory files to avoid to load them from the classpath and have tests working by luck (classpath leak actually) +// see meecrowave-core/src/test/third-party for sources public class Classes { private static final byte[] OTHER_FILTER = new byte[]{ -54, Added: openwebbeans/meecrowave/trunk/meecrowave-core/src/test/third-party/OtherEndpoint.java URL: http://svn.apache.org/viewvc/openwebbeans/meecrowave/trunk/meecrowave-core/src/test/third-party/OtherEndpoint.java?rev=1777329&view=auto ============================================================================== --- openwebbeans/meecrowave/trunk/meecrowave-core/src/test/third-party/OtherEndpoint.java (added) +++ openwebbeans/meecrowave/trunk/meecrowave-core/src/test/third-party/OtherEndpoint.java Wed Jan 4 15:55:52 2017 @@ -0,0 +1,40 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you 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.superbiz.app; + +import javax.enterprise.context.ApplicationScoped; +import javax.inject.Inject; +import javax.ws.rs.GET; +import javax.ws.rs.Path; +import javax.ws.rs.Produces; + +@Path("other") +@ApplicationScoped +public class OtherEndpoint +{ + @Inject + private Injectable injectable; + + @GET + @Produces({"text/plain"}) + public String simple() + { + return Boolean.parseBoolean(this.injectable.injected()) ? "simple" : "fail"; + } +} Added: openwebbeans/meecrowave/trunk/meecrowave-core/src/test/third-party/OtherFilter.java URL: http://svn.apache.org/viewvc/openwebbeans/meecrowave/trunk/meecrowave-core/src/test/third-party/OtherFilter.java?rev=1777329&view=auto ============================================================================== --- openwebbeans/meecrowave/trunk/meecrowave-core/src/test/third-party/OtherFilter.java (added) +++ openwebbeans/meecrowave/trunk/meecrowave-core/src/test/third-party/OtherFilter.java Wed Jan 4 15:55:52 2017 @@ -0,0 +1,50 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you 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.superbiz.app; + +import java.io.IOException; +import java.io.PrintWriter; +import javax.inject.Inject; +import javax.servlet.Filter; +import javax.servlet.FilterChain; +import javax.servlet.FilterConfig; +import javax.servlet.ServletException; +import javax.servlet.ServletRequest; +import javax.servlet.ServletResponse; +import javax.servlet.annotation.WebFilter; + +@WebFilter({"/other"}) +public class OtherFilter + implements Filter +{ + @Inject + private Injectable injectable; + + public void init(FilterConfig filterConfig) + throws ServletException + {} + + public void doFilter(ServletRequest request, ServletResponse response, FilterChain chain) + throws IOException, ServletException + { + response.getWriter().write("filter" + this.injectable.injected()); + } + + public void destroy() {} +}