Commit 14aefe365931f6859ddf0f12a1b912160a5e9ccd

Authored by Emerson Oliveira
1 parent 28dc20cf
Exists in master

Ajustes nos arquivos de propriedades utilizados pelos testes de valor

padrão das configurações
impl/core/src/test/java/br/gov/frameworkdemoiselle/configuration/defaultvalue/ConfigurationDefaultValueTest.java
... ... @@ -50,6 +50,7 @@ import org.junit.Test;
50 50 import org.junit.runner.RunWith;
51 51  
52 52 import br.gov.frameworkdemoiselle.configuration.AbstractConfigurationTest;
  53 +import br.gov.frameworkdemoiselle.configuration.ConfigurationException;
53 54  
54 55 @RunWith(Arquillian.class)
55 56 public class ConfigurationDefaultValueTest extends AbstractConfigurationTest {
... ... @@ -69,9 +70,9 @@ public class ConfigurationDefaultValueTest extends AbstractConfigurationTest {
69 70  
70 71 deployment.addPackages(true, ConfigurationDefaultValueTest.class.getPackage());
71 72 deployment.addAsResource(
72   - new FileAsset(new File("src/test/resources/configuration/field/basic/demoiselle.properties")),
  73 + new FileAsset(new File("src/test/resources/configuration/field/default/demoiselle.properties")),
73 74 "demoiselle.properties").addAsResource(
74   - new FileAsset(new File("src/test/resources/configuration/field/basic/demoiselle.xml")),
  75 + new FileAsset(new File("src/test/resources/configuration/field/default/demoiselle.xml")),
75 76 "demoiselle.xml");
76 77  
77 78 return deployment;
... ... @@ -86,7 +87,7 @@ public class ConfigurationDefaultValueTest extends AbstractConfigurationTest {
86 87 assertEquals(expected, noFileConfig.getStringDefaultWithoutKey());
87 88 }
88 89  
89   - //@Test(expected = ConfigurationException.class)
  90 + @Test//(expected = ConfigurationException.class)
90 91 /*TODO: Lançar exceção quando uma chave adicionada em arquivo de configuração não
91 92 * tiver valor associado*/
92 93 public void loadDefaultValueWithKey(){
... ... @@ -95,6 +96,6 @@ public class ConfigurationDefaultValueTest extends AbstractConfigurationTest {
95 96  
96 97 assertEquals(expectedFilled, filledFieldConfig.getStringDefaultWithKey());
97 98 assertEquals(expectedNoFile, noFileConfig.getStringDefaultWithKey());
98   - emptyFieldsConfig.getStringDefaultWithKey();
  99 + //emptyFieldsConfig.getStringDefaultWithKey();
99 100 }
100 101 }
... ...
impl/core/src/test/resources/configuration/field/basic/demoiselle.properties
... ... @@ -37,4 +37,3 @@ primitiveInteger=1
37 37 wrappedInteger=2
38 38 stringWithSpace=demoiselle framework
39 39 stringWithComma=demoiselle,framework
40   -stringDefaultWithKey=Valor inicializado do arquivo de propriedade
... ...
impl/core/src/test/resources/configuration/field/basic/demoiselle.xml
... ... @@ -39,5 +39,4 @@
39 39 <wrappedInteger>2</wrappedInteger>
40 40 <stringWithSpace>demoiselle framework</stringWithSpace>
41 41 <stringWithComma>demoiselle,framework</stringWithComma>
42   - <stringDefaultWithKey></stringDefaultWithKey>
43 42 </configuration>
44 43 \ No newline at end of file
... ...
impl/core/src/test/resources/configuration/field/default/demoiselle.properties 0 → 100644
... ... @@ -0,0 +1,35 @@
  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 +stringDefaultWithKey=Valor inicializado do arquivo de propriedade
... ...
impl/core/src/test/resources/configuration/field/default/demoiselle.xml 0 → 100644
... ... @@ -0,0 +1,39 @@
  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 +<configuration>
  38 + <stringDefaultWithKey></stringDefaultWithKey>
  39 +</configuration>
0 40 \ No newline at end of file
... ...