diff --git a/impl/core/src/test/java/br/gov/frameworkdemoiselle/configuration/field/clazz/AbstractClassCastFieldConfig.java b/impl/core/src/test/java/br/gov/frameworkdemoiselle/configuration/field/clazz/AbstractClassCastFieldConfig.java
deleted file mode 100644
index fed35dd..0000000
--- a/impl/core/src/test/java/br/gov/frameworkdemoiselle/configuration/field/clazz/AbstractClassCastFieldConfig.java
+++ /dev/null
@@ -1,46 +0,0 @@
-/*
- * Demoiselle Framework
- * Copyright (C) 2010 SERPRO
- * ----------------------------------------------------------------------------
- * This file is part of Demoiselle Framework.
- *
- * Demoiselle Framework is free software; you can redistribute it and/or
- * modify it under the terms of the GNU Lesser General Public License version 3
- * as published by the Free Software Foundation.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public License version 3
- * along with this program; if not, see
- * or write to the Free Software Foundation, Inc., 51 Franklin Street,
- * Fifth Floor, Boston, MA 02110-1301, USA.
- * ----------------------------------------------------------------------------
- * Este arquivo é parte do Framework Demoiselle.
- *
- * O Framework Demoiselle é um software livre; você pode redistribuí-lo e/ou
- * modificá-lo dentro dos termos da GNU LGPL versão 3 como publicada pela Fundação
- * do Software Livre (FSF).
- *
- * Este programa é distribuído na esperança que possa ser útil, mas SEM NENHUMA
- * GARANTIA; sem uma garantia implícita de ADEQUAÇÃO a qualquer MERCADO ou
- * APLICAÇÃO EM PARTICULAR. Veja a Licença Pública Geral GNU/LGPL em português
- * para maiores detalhes.
- *
- * Você deve ter recebido uma cópia da GNU LGPL versão 3, sob o título
- * "LICENCA.txt", junto com esse programa. Se não, acesse
- * ou escreva para a Fundação do Software Livre (FSF) Inc.,
- * 51 Franklin St, Fifth Floor, Boston, MA 02111-1301, USA.
- */
-package br.gov.frameworkdemoiselle.configuration.field.clazz;
-
-public abstract class AbstractClassCastFieldConfig {
-
- private Class forcingClassCastException;
-
- public Class getForcingClassCastException() {
- return forcingClassCastException;
- }
-}
diff --git a/impl/core/src/test/java/br/gov/frameworkdemoiselle/configuration/field/clazz/ConfigurationClassFieldTest.java b/impl/core/src/test/java/br/gov/frameworkdemoiselle/configuration/field/clazz/ConfigurationClassFieldTest.java
index 9cd9f65..ffa6a5f 100644
--- a/impl/core/src/test/java/br/gov/frameworkdemoiselle/configuration/field/clazz/ConfigurationClassFieldTest.java
+++ b/impl/core/src/test/java/br/gov/frameworkdemoiselle/configuration/field/clazz/ConfigurationClassFieldTest.java
@@ -62,9 +62,6 @@ public class ConfigurationClassFieldTest extends AbstractConfigurationTest {
@Inject
private PropertiesClassNotFoundFieldConfig propertiesNotFoundConfig;
- @Inject
- private PropertiesClassCastFieldConfig propertiesCastConfig;
-
@Deployment
public static JavaArchive createDeployment() {
JavaArchive deployment = createConfigurationDeployment();
@@ -81,16 +78,12 @@ public class ConfigurationClassFieldTest extends AbstractConfigurationTest {
@Test
public void loadExistentTypedClass() {
- Class expected = MyClass.class;
-
- assertEquals(expected, propertiesExistentConfig.getExistentTypedClass());
+ assertEquals(MyClass.class, propertiesExistentConfig.getExistentTypedClass());
}
@Test
public void loadExistentUntypedClass() {
- Class> expected = MyClass.class;
-
- assertEquals(expected, propertiesExistentConfig.getExistentUntypedClass());
+ assertEquals(MyClass.class, propertiesExistentConfig.getExistentUntypedClass());
}
@Test
@@ -112,12 +105,4 @@ public class ConfigurationClassFieldTest extends AbstractConfigurationTest {
assertEquals(ClassNotFoundException.class, cause.getCause().getClass());
}
}
-
- @Test(expected = ClassCastException.class)
- public void loadForcingClassCastException() throws IllegalAccessException, InstantiationException {
- Class clazz = propertiesCastConfig.getForcingClassCastException();
-
- @SuppressWarnings("unused")
- MyClass myClass = clazz.newInstance();
- }
}
diff --git a/impl/core/src/test/java/br/gov/frameworkdemoiselle/configuration/field/clazz/PropertiesClassCastFieldConfig.java b/impl/core/src/test/java/br/gov/frameworkdemoiselle/configuration/field/clazz/PropertiesClassCastFieldConfig.java
deleted file mode 100644
index 9969216..0000000
--- a/impl/core/src/test/java/br/gov/frameworkdemoiselle/configuration/field/clazz/PropertiesClassCastFieldConfig.java
+++ /dev/null
@@ -1,45 +0,0 @@
-/*
- * Demoiselle Framework
- * Copyright (C) 2010 SERPRO
- * ----------------------------------------------------------------------------
- * This file is part of Demoiselle Framework.
- *
- * Demoiselle Framework is free software; you can redistribute it and/or
- * modify it under the terms of the GNU Lesser General Public License version 3
- * as published by the Free Software Foundation.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public License version 3
- * along with this program; if not, see
- * or write to the Free Software Foundation, Inc., 51 Franklin Street,
- * Fifth Floor, Boston, MA 02110-1301, USA.
- * ----------------------------------------------------------------------------
- * Este arquivo é parte do Framework Demoiselle.
- *
- * O Framework Demoiselle é um software livre; você pode redistribuí-lo e/ou
- * modificá-lo dentro dos termos da GNU LGPL versão 3 como publicada pela Fundação
- * do Software Livre (FSF).
- *
- * Este programa é distribuído na esperança que possa ser útil, mas SEM NENHUMA
- * GARANTIA; sem uma garantia implícita de ADEQUAÇÃO a qualquer MERCADO ou
- * APLICAÇÃO EM PARTICULAR. Veja a Licença Pública Geral GNU/LGPL em português
- * para maiores detalhes.
- *
- * Você deve ter recebido uma cópia da GNU LGPL versão 3, sob o título
- * "LICENCA.txt", junto com esse programa. Se não, acesse
- * ou escreva para a Fundação do Software Livre (FSF) Inc.,
- * 51 Franklin St, Fifth Floor, Boston, MA 02111-1301, USA.
- */
-package br.gov.frameworkdemoiselle.configuration.field.clazz;
-
-import static br.gov.frameworkdemoiselle.configuration.ConfigType.PROPERTIES;
-import br.gov.frameworkdemoiselle.configuration.Configuration;
-
-@Configuration(type = PROPERTIES)
-public class PropertiesClassCastFieldConfig extends AbstractClassCastFieldConfig {
-
-}
diff --git a/impl/core/src/test/resources/configuration/field/class/demoiselle.properties b/impl/core/src/test/resources/configuration/field/class/demoiselle.properties
index 9d8c08e..3c34314 100644
--- a/impl/core/src/test/resources/configuration/field/class/demoiselle.properties
+++ b/impl/core/src/test/resources/configuration/field/class/demoiselle.properties
@@ -37,4 +37,3 @@ existentTypedClass=br.gov.frameworkdemoiselle.configuration.field.clazz.MyClass
existentUntypedClass=br.gov.frameworkdemoiselle.configuration.field.clazz.MyClass
nonExistentTypedClass=com.fake.NonExistentClass
nonExistentUntypedClass=com.fake.NonExistentClass
-forcingClassCastException=java.lang.String
--
libgit2 0.21.2