Commit 32dfc52f0d55dfbacae1efb4e468641255dfbdf2
Exists in
master
Merge branch '2.4.0' of git@github.com:demoiselle/framework.git into 2.4.0
Showing
16 changed files
with
500 additions
and
157 deletions
Show diff stats
impl/extension/se/pom.xml
impl/extension/se/src/test/java/br/gov/frameworkdemoiselle/internal/bootstrap/SeBootstrapTest.java
... | ... | @@ -1,104 +0,0 @@ |
1 | -///* | |
2 | -// * Demoiselle Framework | |
3 | -// * Copyright (C) 2010 SERPRO | |
4 | -// * ---------------------------------------------------------------------------- | |
5 | -// * This file is part of Demoiselle Framework. | |
6 | -// * | |
7 | -// * Demoiselle Framework is free software; you can redistribute it and/or | |
8 | -// * modify it under the terms of the GNU Lesser General Public License version 3 | |
9 | -// * as published by the Free Software Foundation. | |
10 | -// * | |
11 | -// * This program is distributed in the hope that it will be useful, | |
12 | -// * but WITHOUT ANY WARRANTY; without even the implied warranty of | |
13 | -// * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
14 | -// * GNU General Public License for more details. | |
15 | -// * | |
16 | -// * You should have received a copy of the GNU Lesser General Public License version 3 | |
17 | -// * along with this program; if not, see <http://www.gnu.org/licenses/> | |
18 | -// * or write to the Free Software Foundation, Inc., 51 Franklin Street, | |
19 | -// * Fifth Floor, Boston, MA 02110-1301, USA. | |
20 | -// * ---------------------------------------------------------------------------- | |
21 | -// * Este arquivo é parte do Framework Demoiselle. | |
22 | -// * | |
23 | -// * O Framework Demoiselle é um software livre; você pode redistribuí-lo e/ou | |
24 | -// * modificá-lo dentro dos termos da GNU LGPL versão 3 como publicada pela Fundação | |
25 | -// * do Software Livre (FSF). | |
26 | -// * | |
27 | -// * Este programa é distribuído na esperança que possa ser útil, mas SEM NENHUMA | |
28 | -// * GARANTIA; sem uma garantia implícita de ADEQUAÇÃO a qualquer MERCADO ou | |
29 | -// * APLICAÇÃO EM PARTICULAR. Veja a Licença Pública Geral GNU/LGPL em português | |
30 | -// * para maiores detalhes. | |
31 | -// * | |
32 | -// * Você deve ter recebido uma cópia da GNU LGPL versão 3, sob o título | |
33 | -// * "LICENCA.txt", junto com esse programa. Se não, acesse <http://www.gnu.org/licenses/> | |
34 | -// * ou escreva para a Fundação do Software Livre (FSF) Inc., | |
35 | -// * 51 Franklin St, Fifth Floor, Boston, MA 02111-1301, USA. | |
36 | -// */ | |
37 | -//package br.gov.frameworkdemoiselle.internal.bootstrap; | |
38 | -// | |
39 | -//import static org.easymock.EasyMock.expect; | |
40 | -//import static org.powermock.api.easymock.PowerMock.createMock; | |
41 | -//import static org.powermock.api.easymock.PowerMock.mockStatic; | |
42 | -//import static org.powermock.api.easymock.PowerMock.replay; | |
43 | -//import static org.powermock.api.easymock.PowerMock.verifyAll; | |
44 | -// | |
45 | -//import java.util.List; | |
46 | -//import java.util.Locale; | |
47 | -// | |
48 | -//import javax.enterprise.inject.spi.AfterBeanDiscovery; | |
49 | -// | |
50 | -//import junit.framework.Assert; | |
51 | -// | |
52 | -//import org.junit.Before; | |
53 | -//import org.junit.Ignore; | |
54 | -//import org.junit.Test; | |
55 | -//import org.junit.runner.RunWith; | |
56 | -//import org.powermock.core.classloader.annotations.PrepareForTest; | |
57 | -//import org.powermock.modules.junit4.PowerMockRunner; | |
58 | -//import org.powermock.reflect.Whitebox; | |
59 | -// | |
60 | -//import br.gov.frameworkdemoiselle.internal.context.AbstractCustomContext; | |
61 | -//import br.gov.frameworkdemoiselle.internal.context.ContextManager; | |
62 | -//import br.gov.frameworkdemoiselle.lifecycle.AfterShutdownProccess; | |
63 | -//import br.gov.frameworkdemoiselle.util.Beans; | |
64 | -// | |
65 | -//@RunWith(PowerMockRunner.class) | |
66 | -//@PrepareForTest({ Beans.class, ContextManager.class }) | |
67 | -//@Ignore | |
68 | -//public class SeBootstrapTest { | |
69 | -// | |
70 | -// private SeBootstrap seBootstrap; | |
71 | -// | |
72 | -// private AfterBeanDiscovery event; | |
73 | -// | |
74 | -// @Before | |
75 | -// public void before() { | |
76 | -// event = createMock(AfterBeanDiscovery.class); | |
77 | -// mockStatic(Beans.class); | |
78 | -// expect(Beans.getReference(Locale.class)).andReturn(Locale.getDefault()).anyTimes(); | |
79 | -// replay(Beans.class); | |
80 | -// seBootstrap = new SeBootstrap(); | |
81 | -// } | |
82 | -// | |
83 | -// @Test | |
84 | -// public void testStoreContext() { | |
85 | -// seBootstrap.storeContexts(event); | |
86 | -// replay(event); | |
87 | -// | |
88 | -// Assert.assertEquals(event, Whitebox.getInternalState(seBootstrap, "afterBeanDiscoveryEvent")); | |
89 | -// List<AbstractCustomContext> context = Whitebox.getInternalState(seBootstrap, "tempContexts"); | |
90 | -// Assert.assertEquals(4, context.size()); | |
91 | -// verifyAll(); | |
92 | -// } | |
93 | -// | |
94 | -// @Test | |
95 | -// public void testRemoveContexts() { | |
96 | -// seBootstrap.storeContexts(event); | |
97 | -// | |
98 | -// AfterShutdownProccess afterShutdownProccess = createMock(AfterShutdownProccess.class); | |
99 | -// replay(event, afterShutdownProccess); | |
100 | -// seBootstrap.removeContexts(afterShutdownProccess); | |
101 | -// | |
102 | -// verifyAll(); | |
103 | -// } | |
104 | -// } |
impl/extension/se/src/test/java/br/gov/frameworkdemoiselle/internal/producer/SeLocaleProducerTest.java
... | ... | @@ -1,52 +0,0 @@ |
1 | -/* | |
2 | - * Demoiselle Framework | |
3 | - * Copyright (C) 2010 SERPRO | |
4 | - * ---------------------------------------------------------------------------- | |
5 | - * This file is part of Demoiselle Framework. | |
6 | - * | |
7 | - * Demoiselle Framework is free software; you can redistribute it and/or | |
8 | - * modify it under the terms of the GNU Lesser General Public License version 3 | |
9 | - * as published by the Free Software Foundation. | |
10 | - * | |
11 | - * This program is distributed in the hope that it will be useful, | |
12 | - * but WITHOUT ANY WARRANTY; without even the implied warranty of | |
13 | - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
14 | - * GNU General Public License for more details. | |
15 | - * | |
16 | - * You should have received a copy of the GNU Lesser General Public License version 3 | |
17 | - * along with this program; if not, see <http://www.gnu.org/licenses/> | |
18 | - * or write to the Free Software Foundation, Inc., 51 Franklin Street, | |
19 | - * Fifth Floor, Boston, MA 02110-1301, USA. | |
20 | - * ---------------------------------------------------------------------------- | |
21 | - * Este arquivo é parte do Framework Demoiselle. | |
22 | - * | |
23 | - * O Framework Demoiselle é um software livre; você pode redistribuí-lo e/ou | |
24 | - * modificá-lo dentro dos termos da GNU LGPL versão 3 como publicada pela Fundação | |
25 | - * do Software Livre (FSF). | |
26 | - * | |
27 | - * Este programa é distribuído na esperança que possa ser útil, mas SEM NENHUMA | |
28 | - * GARANTIA; sem uma garantia implícita de ADEQUAÇÃO a qualquer MERCADO ou | |
29 | - * APLICAÇÃO EM PARTICULAR. Veja a Licença Pública Geral GNU/LGPL em português | |
30 | - * para maiores detalhes. | |
31 | - * | |
32 | - * Você deve ter recebido uma cópia da GNU LGPL versão 3, sob o título | |
33 | - * "LICENCA.txt", junto com esse programa. Se não, acesse <http://www.gnu.org/licenses/> | |
34 | - * ou escreva para a Fundação do Software Livre (FSF) Inc., | |
35 | - * 51 Franklin St, Fifth Floor, Boston, MA 02111-1301, USA. | |
36 | - */ | |
37 | -package br.gov.frameworkdemoiselle.internal.producer; | |
38 | - | |
39 | -import java.util.Locale; | |
40 | - | |
41 | -import junit.framework.Assert; | |
42 | - | |
43 | -import org.junit.Test; | |
44 | - | |
45 | -public class SeLocaleProducerTest { | |
46 | - | |
47 | - @Test | |
48 | - public void testCreate() { | |
49 | - Locale locale = (new SeLocaleProducer()).create(); | |
50 | - Assert.assertNotNull(locale); | |
51 | - } | |
52 | -} |
impl/extension/se/src/test/java/scope/ConversationScopedBean.java
0 → 100644
... | ... | @@ -0,0 +1,22 @@ |
1 | +package scope; | |
2 | + | |
3 | +import java.io.Serializable; | |
4 | + | |
5 | +import javax.enterprise.context.ConversationScoped; | |
6 | + | |
7 | +@ConversationScoped | |
8 | +public class ConversationScopedBean implements Serializable { | |
9 | + | |
10 | + private static final long serialVersionUID = 1575194738914049923L; | |
11 | + | |
12 | + private String value; | |
13 | + | |
14 | + public String getValue() { | |
15 | + return value; | |
16 | + } | |
17 | + | |
18 | + public void setValue(String value) { | |
19 | + this.value = value; | |
20 | + } | |
21 | + | |
22 | +} | ... | ... |
impl/extension/se/src/test/java/scope/RequestScopedBean.java
0 → 100644
... | ... | @@ -0,0 +1,18 @@ |
1 | +package scope; | |
2 | + | |
3 | +import javax.enterprise.context.RequestScoped; | |
4 | + | |
5 | +@RequestScoped | |
6 | +public class RequestScopedBean { | |
7 | + | |
8 | + private String value; | |
9 | + | |
10 | + public String getValue() { | |
11 | + return value; | |
12 | + } | |
13 | + | |
14 | + public void setValue(String value) { | |
15 | + this.value = value; | |
16 | + } | |
17 | + | |
18 | +} | ... | ... |
impl/extension/se/src/test/java/scope/ScopedBusiness.java
0 → 100644
... | ... | @@ -0,0 +1,52 @@ |
1 | +package scope; | |
2 | + | |
3 | +import javax.inject.Inject; | |
4 | + | |
5 | +public class ScopedBusiness { | |
6 | + | |
7 | + @Inject | |
8 | + private RequestScopedBean requestScopedBean; | |
9 | + | |
10 | + @Inject | |
11 | + private ViewScopedBean viewScopedBean; | |
12 | + | |
13 | + @Inject | |
14 | + private SessionScopedBean sessionScopedBean; | |
15 | + | |
16 | + @Inject | |
17 | + private ConversationScopedBean conversationScopedBean; | |
18 | + | |
19 | + | |
20 | + public String getValueFromRequest(){ | |
21 | + return requestScopedBean.getValue(); | |
22 | + } | |
23 | + | |
24 | + public void setValueToRequest(String value){ | |
25 | + requestScopedBean.setValue(value); | |
26 | + } | |
27 | + | |
28 | + public String getValueFromSession(){ | |
29 | + return sessionScopedBean.getValue(); | |
30 | + } | |
31 | + | |
32 | + public void setValueToSession(String value){ | |
33 | + sessionScopedBean.setValue(value); | |
34 | + } | |
35 | + | |
36 | + public String getValueFromView(){ | |
37 | + return viewScopedBean.getValue(); | |
38 | + } | |
39 | + | |
40 | + public void setValueToView(String value){ | |
41 | + viewScopedBean.setValue(value); | |
42 | + } | |
43 | + | |
44 | + public String getValueFromConversation(){ | |
45 | + return conversationScopedBean.getValue(); | |
46 | + } | |
47 | + | |
48 | + public void setValueToConversation(String value){ | |
49 | + conversationScopedBean.setValue(value); | |
50 | + } | |
51 | + | |
52 | +} | ... | ... |
... | ... | @@ -0,0 +1,76 @@ |
1 | +package scope; | |
2 | + | |
3 | +import org.jboss.arquillian.container.test.api.Deployment; | |
4 | +import org.jboss.arquillian.junit.Arquillian; | |
5 | +import org.jboss.shrinkwrap.api.spec.JavaArchive; | |
6 | +import org.junit.Assert; | |
7 | +import org.junit.Test; | |
8 | +import org.junit.runner.RunWith; | |
9 | + | |
10 | +import test.Tests; | |
11 | +import br.gov.frameworkdemoiselle.util.Beans; | |
12 | + | |
13 | +@RunWith(Arquillian.class) | |
14 | +public class ScopesTest { | |
15 | + | |
16 | + @Deployment | |
17 | + public static JavaArchive createBootstrapDeployment(){ | |
18 | + return Tests.createDeployment(ScopesTest.class) | |
19 | + .addAsManifestResource( | |
20 | + Tests.createFileAsset("src/test/resources/SeBootstrapExtension.txt"), | |
21 | + "services/javax.enterprise.inject.spi.Extension"); | |
22 | + } | |
23 | + | |
24 | + @Test | |
25 | + public void checkRequestActive(){ | |
26 | + | |
27 | + ScopedBusiness business1 = Beans.getReference(ScopedBusiness.class); | |
28 | + business1.setValueToRequest("REQUEST SCOPE TEST"); | |
29 | + | |
30 | + ScopedBusiness business2 = Beans.getReference(ScopedBusiness.class); | |
31 | + | |
32 | + Assert.assertNotSame(business1, business2); | |
33 | + Assert.assertEquals(business1.getValueFromRequest(), business2.getValueFromRequest()); | |
34 | + Assert.assertEquals("REQUEST SCOPE TEST" , business2.getValueFromRequest()); | |
35 | + } | |
36 | + | |
37 | + @Test | |
38 | + public void checkViewActive(){ | |
39 | + | |
40 | + ScopedBusiness business1 = Beans.getReference(ScopedBusiness.class); | |
41 | + business1.setValueToView("VIEW SCOPE TEST"); | |
42 | + | |
43 | + ScopedBusiness business2 = Beans.getReference(ScopedBusiness.class); | |
44 | + | |
45 | + Assert.assertNotSame(business1, business2); | |
46 | + Assert.assertEquals(business1.getValueFromView(), business2.getValueFromView()); | |
47 | + Assert.assertEquals("VIEW SCOPE TEST" , business2.getValueFromView()); | |
48 | + } | |
49 | + | |
50 | + @Test | |
51 | + public void checkSessionActive(){ | |
52 | + | |
53 | + ScopedBusiness business1 = Beans.getReference(ScopedBusiness.class); | |
54 | + business1.setValueToSession("SESSION SCOPE TEST"); | |
55 | + | |
56 | + ScopedBusiness business2 = Beans.getReference(ScopedBusiness.class); | |
57 | + | |
58 | + Assert.assertNotSame(business1, business2); | |
59 | + Assert.assertEquals(business1.getValueFromSession(), business2.getValueFromSession()); | |
60 | + Assert.assertEquals("SESSION SCOPE TEST" , business2.getValueFromSession()); | |
61 | + } | |
62 | + | |
63 | + @Test | |
64 | + public void checkConversationActive(){ | |
65 | + | |
66 | + ScopedBusiness business1 = Beans.getReference(ScopedBusiness.class); | |
67 | + business1.setValueToConversation("CONVERSATION SCOPE TEST"); | |
68 | + | |
69 | + ScopedBusiness business2 = Beans.getReference(ScopedBusiness.class); | |
70 | + | |
71 | + Assert.assertNotSame(business1, business2); | |
72 | + Assert.assertEquals(business1.getValueFromConversation(), business2.getValueFromConversation()); | |
73 | + Assert.assertEquals("CONVERSATION SCOPE TEST" , business2.getValueFromConversation()); | |
74 | + } | |
75 | + | |
76 | +} | ... | ... |
impl/extension/se/src/test/java/scope/SessionScopedBean.java
0 → 100644
... | ... | @@ -0,0 +1,22 @@ |
1 | +package scope; | |
2 | + | |
3 | +import java.io.Serializable; | |
4 | + | |
5 | +import javax.enterprise.context.SessionScoped; | |
6 | + | |
7 | +@SessionScoped | |
8 | +public class SessionScopedBean implements Serializable { | |
9 | + | |
10 | + private static final long serialVersionUID = 6845866683090203526L; | |
11 | + | |
12 | + private String value; | |
13 | + | |
14 | + public String getValue() { | |
15 | + return value; | |
16 | + } | |
17 | + | |
18 | + public void setValue(String value) { | |
19 | + this.value = value; | |
20 | + } | |
21 | + | |
22 | +} | ... | ... |
impl/extension/se/src/test/java/scope/ViewScopedBean.java
0 → 100644
... | ... | @@ -0,0 +1,18 @@ |
1 | +package scope; | |
2 | + | |
3 | +import br.gov.frameworkdemoiselle.annotation.ViewScoped; | |
4 | + | |
5 | +@ViewScoped | |
6 | +public class ViewScopedBean { | |
7 | + | |
8 | + private String value; | |
9 | + | |
10 | + public String getValue() { | |
11 | + return value; | |
12 | + } | |
13 | + | |
14 | + public void setValue(String value) { | |
15 | + this.value = value; | |
16 | + } | |
17 | + | |
18 | +} | ... | ... |
... | ... | @@ -0,0 +1,71 @@ |
1 | +/* | |
2 | + * Demoiselle Framework | |
3 | + * Copyright (C) 2010 SERPRO | |
4 | + * ---------------------------------------------------------------------------- | |
5 | + * This file is part of Demoiselle Framework. | |
6 | + * | |
7 | + * Demoiselle Framework is free software; you can redistribute it and/or | |
8 | + * modify it under the terms of the GNU Lesser General Public License version 3 | |
9 | + * as published by the Free Software Foundation. | |
10 | + * | |
11 | + * This program is distributed in the hope that it will be useful, | |
12 | + * but WITHOUT ANY WARRANTY; without even the implied warranty of | |
13 | + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
14 | + * GNU General Public License for more details. | |
15 | + * | |
16 | + * You should have received a copy of the GNU Lesser General Public License version 3 | |
17 | + * along with this program; if not, see <http://www.gnu.org/licenses/> | |
18 | + * or write to the Free Software Foundation, Inc., 51 Franklin Street, | |
19 | + * Fifth Floor, Boston, MA 02110-1301, USA. | |
20 | + * ---------------------------------------------------------------------------- | |
21 | + * Este arquivo é parte do Framework Demoiselle. | |
22 | + * | |
23 | + * O Framework Demoiselle é um software livre; você pode redistribuí-lo e/ou | |
24 | + * modificá-lo dentro dos termos da GNU LGPL versão 3 como publicada pela Fundação | |
25 | + * do Software Livre (FSF). | |
26 | + * | |
27 | + * Este programa é distribuído na esperança que possa ser útil, mas SEM NENHUMA | |
28 | + * GARANTIA; sem uma garantia implícita de ADEQUAÇÃO a qualquer MERCADO ou | |
29 | + * APLICAÇÃO EM PARTICULAR. Veja a Licença Pública Geral GNU/LGPL em português | |
30 | + * para maiores detalhes. | |
31 | + * | |
32 | + * Você deve ter recebido uma cópia da GNU LGPL versão 3, sob o título | |
33 | + * "LICENCA.txt", junto com esse programa. Se não, acesse <http://www.gnu.org/licenses/> | |
34 | + * ou escreva para a Fundação do Software Livre (FSF) Inc., | |
35 | + * 51 Franklin St, Fifth Floor, Boston, MA 02111-1301, USA. | |
36 | + */ | |
37 | + | |
38 | +package test; | |
39 | + | |
40 | +import java.io.File; | |
41 | + | |
42 | +import org.jboss.shrinkwrap.api.ShrinkWrap; | |
43 | +import org.jboss.shrinkwrap.api.asset.FileAsset; | |
44 | +import org.jboss.shrinkwrap.api.spec.JavaArchive; | |
45 | +import org.junit.Ignore; | |
46 | + | |
47 | +@Ignore | |
48 | +public final class Tests { | |
49 | + | |
50 | + private Tests() { | |
51 | + } | |
52 | + | |
53 | + public static JavaArchive createDeployment(final Class<?> baseClass) { | |
54 | + return createDeployment().addPackages(true, baseClass.getPackage()); | |
55 | + } | |
56 | + | |
57 | + public static JavaArchive createDeployment() { | |
58 | + return ShrinkWrap | |
59 | + .create(JavaArchive.class) | |
60 | + .addClass(Tests.class) | |
61 | + .addPackages(true, "br.gov.frameworkdemoiselle") | |
62 | + .addAsResource(Tests.createFileAsset("src/test/resources/log4j.properties"),"log4j.properties") | |
63 | + .addAsResource(Tests.createFileAsset("src/test/resources/demoiselle-core-bundle.properties"),"demoiselle-core-bundle.properties") | |
64 | + .addAsManifestResource(Tests.createFileAsset("src/test/resources/beans.xml"), "beans.xml"); | |
65 | + } | |
66 | + | |
67 | + public static FileAsset createFileAsset(final String pathname) { | |
68 | + return new FileAsset(new File(pathname)); | |
69 | + } | |
70 | + | |
71 | +} | ... | ... |
impl/extension/se/src/test/resources/SeBootstrapExtension.txt
0 → 100644
... | ... | @@ -0,0 +1,6 @@ |
1 | +br.gov.frameworkdemoiselle.internal.bootstrap.CoreBootstrap | |
2 | +br.gov.frameworkdemoiselle.internal.bootstrap.ConfigurationBootstrap | |
3 | +br.gov.frameworkdemoiselle.internal.bootstrap.ManagementBootstrap | |
4 | +br.gov.frameworkdemoiselle.internal.bootstrap.StartupBootstrap | |
5 | +br.gov.frameworkdemoiselle.internal.bootstrap.ShutdownBootstrap | |
6 | +br.gov.frameworkdemoiselle.internal.bootstrap.SeBootstrap | |
0 | 7 | \ No newline at end of file | ... | ... |
... | ... | @@ -0,0 +1,40 @@ |
1 | +<!-- | |
2 | + Demoiselle Framework | |
3 | + Copyright (C) 2010 SERPRO | |
4 | + ============================================================================ | |
5 | + This file is part of Demoiselle Framework. | |
6 | + | |
7 | + Demoiselle Framework is free software; you can redistribute it and/or | |
8 | + modify it under the terms of the GNU Lesser General Public License version 3 | |
9 | + as published by the Free Software Foundation. | |
10 | + | |
11 | + This program is distributed in the hope that it will be useful, | |
12 | + but WITHOUT ANY WARRANTY; without even the implied warranty of | |
13 | + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
14 | + GNU General Public License for more details. | |
15 | + | |
16 | + You should have received a copy of the GNU Lesser General Public License version 3 | |
17 | + along with this program; if not, see <http://www.gnu.org/licenses/> | |
18 | + or write to the Free Software Foundation, Inc., 51 Franklin Street, | |
19 | + Fifth Floor, Boston, MA 02110-1301, USA. | |
20 | + ============================================================================ | |
21 | + Este arquivo é parte do Framework Demoiselle. | |
22 | + | |
23 | + O Framework Demoiselle é um software livre; você pode redistribuí-lo e/ou | |
24 | + modificá-lo dentro dos termos da GNU LGPL versão 3 como publicada pela Fundação | |
25 | + do Software Livre (FSF). | |
26 | + | |
27 | + Este programa é distribuído na esperança que possa ser útil, mas SEM NENHUMA | |
28 | + GARANTIA; sem uma garantia implícita de ADEQUAÇÃO a qualquer MERCADO ou | |
29 | + APLICAÇÃO EM PARTICULAR. Veja a Licença Pública Geral GNU/LGPL em português | |
30 | + para maiores detalhes. | |
31 | + | |
32 | + Você deve ter recebido uma cópia da GNU LGPL versão 3, sob o título | |
33 | + "LICENCA.txt", junto com esse programa. Se não, acesse <http://www.gnu.org/licenses/> | |
34 | + ou escreva para a Fundação do Software Livre (FSF) Inc., | |
35 | + 51 Franklin St, Fifth Floor, Boston, MA 02111-1301, USA. | |
36 | +--> | |
37 | +<beans xmlns="http://java.sun.com/xml/ns/javaee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | |
38 | + xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/beans_1_0.xsd"> | |
39 | + | |
40 | +</beans> | |
0 | 41 | \ No newline at end of file | ... | ... |
impl/extension/se/src/test/resources/demoiselle-core-bundle.properties
0 → 100644
... | ... | @@ -0,0 +1,123 @@ |
1 | +# Demoiselle Framework | |
2 | +# Copyright (C) 2010 SERPRO | |
3 | +# ---------------------------------------------------------------------------- | |
4 | +# This file is part of Demoiselle Framework. | |
5 | +# | |
6 | +# Demoiselle Framework is free software; you can redistribute it and/or | |
7 | +# modify it under the terms of the GNU Lesser General Public License version 3 | |
8 | +# as published by the Free Software Foundation. | |
9 | +# | |
10 | +# This program is distributed in the hope that it will be useful, | |
11 | +# but WITHOUT ANY WARRANTY; without even the implied warranty of | |
12 | +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
13 | +# GNU General Public License for more details. | |
14 | +# | |
15 | +# You should have received a copy of the GNU Lesser General Public License version 3 | |
16 | +# along with this program; if not, see <http://www.gnu.org/licenses/> | |
17 | +# or write to the Free Software Foundation, Inc., 51 Franklin Street, | |
18 | +# Fifth Floor, Boston, MA 02110-1301, USA. | |
19 | +# ---------------------------------------------------------------------------- | |
20 | +# Este arquivo é parte do Framework Demoiselle. | |
21 | +# | |
22 | +# O Framework Demoiselle é um software livre; você pode redistribuí-lo e/ou | |
23 | +# modificá-lo dentro dos termos da GNU LGPL versão 3 como publicada pela Fundação | |
24 | +# do Software Livre (FSF). | |
25 | +# | |
26 | +# Este programa é distribuído na esperança que possa ser útil, mas SEM NENHUMA | |
27 | +# GARANTIA; sem uma garantia implícita de ADEQUAÇÃO a qualquer MERCADO ou | |
28 | +# APLICAÇÃO EM PARTICULAR. Veja a Licença Pública Geral GNU/LGPL em português | |
29 | +# para maiores detalhes. | |
30 | +# | |
31 | +# Você deve ter recebido uma cópia da GNU LGPL versão 3, sob o título | |
32 | +# "LICENCA.txt", junto com esse programa. Se não, acesse <http://www.gnu.org/licenses/> | |
33 | +# ou escreva para a Fundação do Software Livre (FSF) Inc., | |
34 | +# 51 Franklin St, Fifth Floor, Boston, MA 02111-1301, USA. | |
35 | + | |
36 | +engine-on=Ligando os motores do Demoiselle ${project.version} | |
37 | +resource-not-found=Arquivo {0} n\u00E3o foi encontrado | |
38 | +key-not-found=A chave {0} n\u00E3o foi encontrada | |
39 | +ambiguous-strategy-resolution=Foi detectada ambiguidade da interface {0} com as seguintes implementa\u00E7\u00F5es\: {1}. Para resolver o conflito, defina explicitamente a implementa\u00E7\u00E3o no demoiselle.properties. | |
40 | +bean-not-found=Voc\u00EA est\u00E1 tentando obter um objeto n\u00E3o reconhecido pelo CDI via Beans.getReference({0}) | |
41 | +more-than-one-exceptionhandler-defined-for-same-class=Foi definido mais de um m\u00E9todo na classe {0} para tratar a exce\u00E7\u00E3o {1} | |
42 | +handling-exception=Tratando a exce\u00E7\u00E3o {0} | |
43 | +taking-off=O Demoiselle ${project.version} decolou | |
44 | +engine-off=Desligando os motores do Demoiselle ${project.version} | |
45 | +setting-up-bean-manager=BeanManager dispon\u00EDvel atrav\u00E9s do utilit\u00E1rio {0} | |
46 | + | |
47 | +user-transaction-lookup-fail=N\u00E3o foi encontrada nenhuma transa\u00E7\u00E3o com o nome {0} no contexto JNDI | |
48 | +transactional-execution=Execu\u00E7\u00E3o transacional de {0} | |
49 | +begin-transaction=Transa\u00E7\u00E3o iniciada | |
50 | +transaction-marked-rollback=Transa\u00E7\u00E3o marcada para rollback [{0}] | |
51 | +transaction-already-finalized=A transa\u00E7\u00E3o j\u00E1 havia sido finalizada | |
52 | +transaction-commited=Transa\u00E7\u00E3o finalizada com sucesso | |
53 | +transaction-rolledback=Transa\u00E7\u00E3o finalizada com rollback | |
54 | + | |
55 | +bootstrap.configuration.processing=Processando {0} | |
56 | +bootstrap-context-already-managed=O contexto {0} para o escopo {1} j\u00E1 foi adicionado | |
57 | +bootstrap-context-added=Adicionando o contexto {0} para o escopo {1} | |
58 | + | |
59 | +loading-configuration-class=Carregando a classe de configura\u00E7\u00E3o {0} | |
60 | +configuration-field-loaded=Configura\u00E7\u00E3o {0} atribu\u00EDda a {1} com o valor {2} | |
61 | +configuration-attribute-is-mandatory=A configura\u00E7\u00E3o {0} \u00E9 obrigat\u00F3ria, mas n\u00E3o foi encontrada em {1} | |
62 | +configuration-name-attribute-cant-be-empty=A nota\u00E7\u00E3o Name n\u00E3o pode estar em branco | |
63 | +configuration-key-not-found=Chave de configura\u00E7\u00E3o {0} n\u00E3o encontrada | |
64 | +configuration-extractor-not-found=N\u00E3o foi poss\u00EDvel encontrar a classe extratora para o atributo {0}. Implemente a interface {1} para criar sua classe extratora. | |
65 | +configuration-not-conversion=N\u00E3o \u00E9 poss\u00EDvel converter o valor {0} para o tipo {1} | |
66 | + | |
67 | +transaction-not-defined=Nenhuma transa\u00E7\u00E3o foi definida. Para utilizar @{0} \u00E9 preciso definir a propriedade frameworkdemoiselle.transaction.class com a estrat\u00E9gia de transa\u00E7\u00E3o desejada no arquivo demoiselle.properties | |
68 | +executing-all=Executando todos os \: {0} | |
69 | +custom-context-was-registered=O contexto {0} foi registrado | |
70 | +custom-context-was-unregistered=O contexto {0} foi removido | |
71 | +custom-context-was-activated=O contexto {0} foi ativado para o escopo {1} | |
72 | +custom-context-was-deactivated=O contexto {0} foi desativado para o escopo {1} | |
73 | +custom-context-already-activated=N\u00E3o foi poss\u00EDvel ativar o contexto {0}, o escopo {1} j\u00E1 est\u00E1 ativo no contexto {2} | |
74 | +custom-context-not-found=N\u00E3o foi encontrado um contexto gerenciado do tipo [{0}] para o escopo [{1}] | |
75 | +custom-context-manager-not-initialized=ContextManager n\u00E3o foi inicializado. Chame [initialize] ao capturar o evento [AfterBeanDiscovery] em uma extens\u00E3o CDI | |
76 | + | |
77 | +error-creating-new-instance-for=Error creating a new instance for "{0}" | |
78 | +executed-successfully={0} execultado com sucesso | |
79 | +must-declare-one-single-parameter=Voc\u00EA deve declarar um par\u00E2metro \u00FAnico em {0} | |
80 | +loading-default-transaction-manager=Carregando o gerenciador de transa\u00E7\u00E3o padr\u00E3o {0} | |
81 | +results-count-greater-page-size=Quantidade de resultados {0} \u00E9 maior que o tamanho da p\u00E1gina {1} | |
82 | +page-result=Resultado paginado [p\u00E1gina\={0}, total de resultados\={1}] | |
83 | +page=P\u00E1gina [n\u00FAmero\={0}, tamanho\={1}] | |
84 | +processing=Processando\: {0} | |
85 | +processing-fail=Falha no processamento devido a uma exce\u00E7\u00E3o lan\u00E7ada pela aplica\u00E7\u00E3o | |
86 | +for= \ para\: | |
87 | +file-not-found=O arquivo {0} n\u00E3o foi encontrado | |
88 | + | |
89 | +adding-message-to-context=Adicionando uma mensagem no contexto: [{0}] | |
90 | +access-checking=Verificando permiss\u00E3o do usu\u00E1rio {0} para executar a a\u00E7\u00E3o {1} no recurso {2} | |
91 | +access-allowed=O usu\u00E1rio {0} acessou o recurso {2} com a a\u00E7\u00E3o {1} | |
92 | +access-denied=O usu\u00E1rio {0} n\u00E3o possui permiss\u00E3o para executar a a\u00E7\u00E3o {1} no recurso {2} | |
93 | +access-denied-ui=Voc\u00EA n\u00E3o est\u00E1 autorizado a executar a a\u00E7\u00E3o {1} no recurso {0} | |
94 | +authorizer-not-defined=Nenhuma regra de resolu\u00E7\u00E3o de permiss\u00F5es foi definida. Para utilizar @{0} \u00E9 preciso definir a propriedade frameworkdemoiselle.security.authorizer.class como regra de resolu\u00E7\u00E3o de permiss\u00F5es desejada no arquivo demoiselle.properties. | |
95 | +user-not-authenticated=Usu\u00E1rio n\u00E3o autenticado | |
96 | +has-role-verification=Verificando se o usu\u00E1rio {0} possui a(s) role(s)\: {1} | |
97 | +does-not-have-role=Usu\u00E1rio {0} n\u00E3o possui a(s) role(s)\: {1} | |
98 | +does-not-have-role-ui=Para acessar este recurso \u00E9 necess\u00E1rio ser {0} | |
99 | +user-has-role=Usu\u00E1rio {0} possui a(s) role(s)\: {1} | |
100 | + | |
101 | +authenticator-not-defined=Nenhum mecanismo de autentica\u00E7\u00E3o foi definido. Para utilizar {0} \u00E9 preciso definir a propriedade frameworkdemoiselle.security.authenticator.class como mecanismo de autentica\u00E7\u00E3o desejado no arquivo demoiselle.properties. | |
102 | + | |
103 | +management-notification-attribute-changed=O atributo [{0}] da classe gerenciada [{1}] foi alterado | |
104 | +management-null-class-defined=O controlador de gerenciamento informado n\u00E3o pode ser [null] | |
105 | +management-abstract-class-defined=O controlador de gerenciamento [{0}] precisa ser uma classe concreta | |
106 | +management-no-annotation-found=Classe {0} precisa ser anotada com @ManagementController | |
107 | +management-invalid-property-no-getter-setter=Falha ao inicializar classe gerenciada {0}, n\u00E3o foi encontrado um m\u00E9todo get ou m\u00E9todo set para a propriedade {1} | |
108 | +management-invalid-property-as-operation=Falha ao inicializar classe gerenciada {0}, n\u00E3o \u00E9 poss\u00EDvel declarar uma propriedade cujo m\u00E9todo get ou set \u00E9 uma opera\u00E7\u00E3o | |
109 | +management-introspection-error=Erro ao ler atributos da classe gerenciada {0} | |
110 | +management-type-not-found=A classe gerenciada informada n\u00E3o existe\: {0} | |
111 | +management-invoke-error=Erro ao tentar invocar a opera\u00E7\u00E3o "{0}" da classe gerenciada, a opera\u00E7\u00E3o n\u00E3o foi encontrada | |
112 | +management-write-value-error=N\u00E3o foi poss\u00EDvel definir um valor para a propriedade {0} | |
113 | +management-read-value-error=N\u00E3o foi poss\u00EDvel ler o valor da propriedade {0} | |
114 | +management-debug-acessing-property=Acessando propriedade {0} da classe gerenciada {1} | |
115 | +management-debug-setting-property=Definindo novo valor para propriedade {0} da classe gerenciada {1} | |
116 | +management-debug-invoking-operation=Invocando opera\u00E7\u00E3o {0} da classe gerenciada {1} | |
117 | +management-debug-starting-custom-context=Levantando contexto {0} para executar comando na classe gerenciada {1} | |
118 | +management-debug-stoping-custom-context=Desligando contexto {0} para classe gerenciada {1} | |
119 | +management-debug-registering-managed-type=Registrando classe gerenciada [{0}] | |
120 | +management-debug-processing-management-extension=Processando extens\u00E3o de gerenciamento [{0}] | |
121 | +management-debug-removing-management-extension=Desativando extens\u00E3o de gerenciamento [{0}] | |
122 | +management-validation-constraint-violation=Ocorreu um erro de valida\u00E7\u00E3o na classe [{0}] ao definir um valor para a propriedade [{1}]\: [{2}] | |
123 | +management-validation-validator-not-found=Nenhum provedor de valida\u00E7\u00E3o de beans encontrado, as anota\u00E7\u00F5es de valida\u00E7\u00E3o n\u00E3o ser\u00E3o processadas | ... | ... |
... | ... | @@ -0,0 +1,41 @@ |
1 | +# Demoiselle Framework | |
2 | +# Copyright (C) 2010 SERPRO | |
3 | +# ---------------------------------------------------------------------------- | |
4 | +# This file is part of Demoiselle Framework. | |
5 | +# | |
6 | +# Demoiselle Framework is free software; you can redistribute it and/or | |
7 | +# modify it under the terms of the GNU Lesser General Public License version 3 | |
8 | +# as published by the Free Software Foundation. | |
9 | +# | |
10 | +# This program is distributed in the hope that it will be useful, | |
11 | +# but WITHOUT ANY WARRANTY; without even the implied warranty of | |
12 | +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
13 | +# GNU General Public License for more details. | |
14 | +# | |
15 | +# You should have received a copy of the GNU Lesser General Public License version 3 | |
16 | +# along with this program; if not, see <http://www.gnu.org/licenses/> | |
17 | +# or write to the Free Software Foundation, Inc., 51 Franklin Street, | |
18 | +# Fifth Floor, Boston, MA 02110-1301, USA. | |
19 | +# ---------------------------------------------------------------------------- | |
20 | +# Este arquivo é parte do Framework Demoiselle. | |
21 | +# | |
22 | +# O Framework Demoiselle é um software livre; você pode redistribuí-lo e/ou | |
23 | +# modificá-lo dentro dos termos da GNU LGPL versão 3 como publicada pela Fundação | |
24 | +# do Software Livre (FSF). | |
25 | +# | |
26 | +# Este programa é distribuído na esperança que possa ser útil, mas SEM NENHUMA | |
27 | +# GARANTIA; sem uma garantia implícita de ADEQUAÇÃO a qualquer MERCADO ou | |
28 | +# APLICAÇÃO EM PARTICULAR. Veja a Licença Pública Geral GNU/LGPL em português | |
29 | +# para maiores detalhes. | |
30 | +# | |
31 | +# Você deve ter recebido uma cópia da GNU LGPL versão 3, sob o título | |
32 | +# "LICENCA.txt", junto com esse programa. Se não, acesse <http://www.gnu.org/licenses/> | |
33 | +# ou escreva para a Fundação do Software Livre (FSF) Inc., | |
34 | +# 51 Franklin St, Fifth Floor, Boston, MA 02111-1301, USA. | |
35 | + | |
36 | +log4j.logger.br.gov.frameworkdemoiselle=DEBUG, STDOUT | |
37 | +log4j.logger.org.jboss.weld=WARN, STDOUT | |
38 | + | |
39 | +log4j.appender.STDOUT=org.apache.log4j.ConsoleAppender | |
40 | +log4j.appender.STDOUT.layout=org.apache.log4j.PatternLayout | |
41 | +log4j.appender.STDOUT.layout.ConversionPattern=%-5p [%c{1}] %m%n | ... | ... |
parent/extension/pom.xml
... | ... | @@ -189,6 +189,11 @@ |
189 | 189 | </profile> |
190 | 190 | <profile> |
191 | 191 | <id>arquillian-weld-se-embedded</id> |
192 | + <activation> | |
193 | + <file> | |
194 | + <exists>.arquillian-weld-se-embedded</exists> | |
195 | + </file> | |
196 | + </activation> | |
192 | 197 | <dependencies> |
193 | 198 | <dependency> |
194 | 199 | <groupId>org.jboss.arquillian.container</groupId> |
... | ... | @@ -223,6 +228,11 @@ |
223 | 228 | </profile> |
224 | 229 | <profile> |
225 | 230 | <id>arquillian-jbossas7-managed</id> |
231 | + <activation> | |
232 | + <file> | |
233 | + <exists>.arquillian-jbossas7-managed</exists> | |
234 | + </file> | |
235 | + </activation> | |
226 | 236 | <build> |
227 | 237 | <testResources> |
228 | 238 | <testResource> | ... | ... |