Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

cleanup

  • Loading branch information...
commit 66b08eeb259711b59bae1e90266e3ba9b23f96ff 1 parent 5c8e13a
@ktoso authored
View
24 .idea/workspace.xml
@@ -118,10 +118,10 @@
</provider>
</entry>
</file>
- <file leaf-file-name="Employee.java" pinned="false" current="true" current-in-tab="true">
+ <file leaf-file-name="Employee.java" pinned="false" current="false" current-in-tab="false">
<entry file="file://$PROJECT_DIR$/src/main/java/pl/xsolve/model/Employee.java">
<provider selected="true" editor-type-id="text-editor">
- <state line="15" column="26" selection-start="291" selection-end="291" vertical-scroll-proportion="0.27327934">
+ <state line="33" column="117" selection-start="734" selection-end="734" vertical-scroll-proportion="0.0">
<folding />
</state>
</provider>
@@ -220,10 +220,10 @@
</provider>
</entry>
</file>
- <file leaf-file-name="MorphiaFactory.java" pinned="false" current="false" current-in-tab="false">
+ <file leaf-file-name="MorphiaFactory.java" pinned="false" current="true" current-in-tab="true">
<entry file="file://$PROJECT_DIR$/src/main/java/pl/xsolve/tools/MorphiaFactory.java">
<provider selected="true" editor-type-id="text-editor">
- <state line="55" column="0" selection-start="1478" selection-end="1478" vertical-scroll-proportion="0.0">
+ <state line="45" column="47" selection-start="1334" selection-end="1334" vertical-scroll-proportion="0.5010395">
<folding />
</state>
</provider>
@@ -1034,13 +1034,6 @@
</state>
</provider>
</entry>
- <entry file="file://$PROJECT_DIR$/src/main/java/pl/xsolve/tools/MorphiaFactory.java">
- <provider selected="true" editor-type-id="text-editor">
- <state line="55" column="0" selection-start="1478" selection-end="1478" vertical-scroll-proportion="0.0">
- <folding />
- </state>
- </provider>
- </entry>
<entry file="file://$PROJECT_DIR$/src/main/resources/spring-config.xml">
<provider editor-type-id="com.intellij.spring.perspectives.SpringBeansStructureEditorProvider">
<state />
@@ -1127,7 +1120,14 @@
</entry>
<entry file="file://$PROJECT_DIR$/src/main/java/pl/xsolve/model/Employee.java">
<provider selected="true" editor-type-id="text-editor">
- <state line="15" column="26" selection-start="291" selection-end="291" vertical-scroll-proportion="0.27327934">
+ <state line="33" column="117" selection-start="734" selection-end="734" vertical-scroll-proportion="0.0">
+ <folding />
+ </state>
+ </provider>
+ </entry>
+ <entry file="file://$PROJECT_DIR$/src/main/java/pl/xsolve/tools/MorphiaFactory.java">
+ <provider selected="true" editor-type-id="text-editor">
+ <state line="45" column="47" selection-start="1334" selection-end="1334" vertical-scroll-proportion="0.5010395">
<folding />
</state>
</provider>
View
BIN  target/classes/pl/xsolve/dao/EmployeeDao.class
Binary file not shown
View
BIN  target/classes/pl/xsolve/dao/EmployeeDaoMorphiaImpl.class
Binary file not shown
View
BIN  target/classes/pl/xsolve/dao/MorphiaDao.class
Binary file not shown
View
BIN  target/classes/pl/xsolve/model/Address.class
Binary file not shown
View
BIN  target/classes/pl/xsolve/model/Employee.class
Binary file not shown
View
BIN  target/classes/pl/xsolve/tools/MorphiaFactory.class
Binary file not shown
View
24 target/classes/spring-config.xml
@@ -1,24 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<beans xmlns="http://www.springframework.org/schema/beans"
- xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
- xmlns:context="http://www.springframework.org/schema/context"
- xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd
- http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context.xsd">
-
- <!--<context:property-placeholder location="classpath:db-${my.env}.properties"/>-->
- <!--<bean id="propertyPlaceholderConfigurer" class="org.springframework.beans.factory.config.PropertyPlaceholderConfigurer" />-->
-
- <!-- setup Mongo and Morphia -->
- <bean name="morphiaFactory" class="pl.xsolve.tools.MorphiaFactory">
- <property name="host" value="127.0.0.1"/>
- <property name="port" value="27017"/>
- </bean>
- <bean name="mongo" factory-bean="morphiaFactory" factory-method="getMongoInstance"/>
- <bean name="morphia" factory-bean="morphiaFactory" factory-method="getMorphiaInstance"/>
-
- <bean id="employeeDao" class="pl.xsolve.dao.EmployeeDaoMorphiaImpl">
- <constructor-arg name="mongo" ref="mongo"/>
- <constructor-arg name="morphia" ref="morphia"/>
- <constructor-arg name="dbName" value="mongo-testing-test"/>
- </bean>
-</beans>
View
175 target/surefire-reports/TEST-pl.xsolve.dao.EmployeeDaoMorphiaImplTest.xml
@@ -1,175 +0,0 @@
-<?xml version="1.0" encoding="UTF-8" ?>
-<testsuite failures="1" time="0.029" errors="0" skipped="0" tests="1" name="pl.xsolve.dao.EmployeeDaoMorphiaImplTest">
- <properties>
- <property name="java.runtime.name" value="Java(TM) SE Runtime Environment"/>
- <property name="sun.boot.library.path" value="/usr/java/jdk1.6.0_21/jre/lib/i386"/>
- <property name="java.vm.version" value="17.0-b16"/>
- <property name="java.vm.vendor" value="Sun Microsystems Inc."/>
- <property name="java.vendor.url" value="http://java.sun.com/"/>
- <property name="path.separator" value=":"/>
- <property name="java.vm.name" value="Java HotSpot(TM) Server VM"/>
- <property name="file.encoding.pkg" value="sun.io"/>
- <property name="user.country" value="PL"/>
- <property name="sun.java.launcher" value="SUN_STANDARD"/>
- <property name="sun.os.patch.level" value="unknown"/>
- <property name="java.vm.specification.name" value="Java Virtual Machine Specification"/>
- <property name="user.dir" value="/home/ktoso/coding/xsolve/mongo-testing"/>
- <property name="java.runtime.version" value="1.6.0_21-b06"/>
- <property name="java.awt.graphicsenv" value="sun.awt.X11GraphicsEnvironment"/>
- <property name="basedir" value="/home/ktoso/coding/xsolve/mongo-testing"/>
- <property name="java.endorsed.dirs" value="/usr/java/jdk1.6.0_21/jre/lib/endorsed"/>
- <property name="os.arch" value="i386"/>
- <property name="surefire.real.class.path" value="/tmp/surefirebooter9195220481435733267.jar"/>
- <property name="java.io.tmpdir" value="/tmp"/>
- <property name="line.separator" value="
-"/>
- <property name="java.vm.specification.vendor" value="Sun Microsystems Inc."/>
- <property name="os.name" value="Linux"/>
- <property name="sun.jnu.encoding" value="UTF-8"/>
- <property name="java.library.path" value="/usr/java/jdk1.6.0_21/jre/lib/i386/server:/usr/java/jdk1.6.0_21/jre/lib/i386:/usr/java/jdk1.6.0_21/jre/../lib/i386:.::/usr/java/packages/lib/i386:/lib:/usr/lib"/>
- <property name="surefire.test.class.path" value="/home/ktoso/coding/xsolve/mongo-testing/target/test-classes:/home/ktoso/coding/xsolve/mongo-testing/target/classes:/home/ktoso/.m2/repository/org/springframework/spring-core/3.0.0.RELEASE/spring-core-3.0.0.RELEASE.jar:/home/ktoso/.m2/repository/org/springframework/spring-asm/3.0.0.RELEASE/spring-asm-3.0.0.RELEASE.jar:/home/ktoso/.m2/repository/commons-logging/commons-logging/1.1.1/commons-logging-1.1.1.jar:/home/ktoso/.m2/repository/org/springframework/spring-context-support/3.0.0.RELEASE/spring-context-support-3.0.0.RELEASE.jar:/home/ktoso/.m2/repository/org/springframework/spring-beans/3.0.0.RELEASE/spring-beans-3.0.0.RELEASE.jar:/home/ktoso/.m2/repository/org/springframework/spring-context/3.0.0.RELEASE/spring-context-3.0.0.RELEASE.jar:/home/ktoso/.m2/repository/org/springframework/spring-expression/3.0.0.RELEASE/spring-expression-3.0.0.RELEASE.jar:/home/ktoso/.m2/repository/org/springframework/security/spring-security-core/3.0.1.RELEASE/spring-security-core-3.0.1.RELEASE.jar:/home/ktoso/.m2/repository/org/springframework/spring-tx/3.0.0.RELEASE/spring-tx-3.0.0.RELEASE.jar:/home/ktoso/.m2/repository/aopalliance/aopalliance/1.0/aopalliance-1.0.jar:/home/ktoso/.m2/repository/org/springframework/spring-aop/3.0.0.RELEASE/spring-aop-3.0.0.RELEASE.jar:/home/ktoso/.m2/repository/org/aspectj/aspectjrt/1.6.8/aspectjrt-1.6.8.jar:/home/ktoso/.m2/repository/org/aspectj/aspectjweaver/1.6.8/aspectjweaver-1.6.8.jar:/home/ktoso/.m2/repository/org/springframework/security/org.springframework.security.config/3.0.0.RELEASE/org.springframework.security.config-3.0.0.RELEASE.jar:/home/ktoso/.m2/repository/org/apache/commons/com.springsource.org.apache.commons.logging/1.1.1/com.springsource.org.apache.commons.logging-1.1.1.jar:/home/ktoso/.m2/repository/org/springframework/org.springframework.beans/3.0.0.RELEASE/org.springframework.beans-3.0.0.RELEASE.jar:/home/ktoso/.m2/repository/org/springframework/org.springframework.core/3.0.0.RELEASE/org.springframework.core-3.0.0.RELEASE.jar:/home/ktoso/.m2/repository/org/springframework/org.springframework.asm/3.0.0.RELEASE/org.springframework.asm-3.0.0.RELEASE.jar:/home/ktoso/.m2/repository/org/springframework/org.springframework.context/3.0.0.RELEASE/org.springframework.context-3.0.0.RELEASE.jar:/home/ktoso/.m2/repository/org/springframework/org.springframework.aop/3.0.0.RELEASE/org.springframework.aop-3.0.0.RELEASE.jar:/home/ktoso/.m2/repository/org/aopalliance/com.springsource.org.aopalliance/1.0.0/com.springsource.org.aopalliance-1.0.0.jar:/home/ktoso/.m2/repository/org/springframework/org.springframework.expression/3.0.0.RELEASE/org.springframework.expression-3.0.0.RELEASE.jar:/home/ktoso/.m2/repository/org/springframework/security/org.springframework.security.core/3.0.0.RELEASE/org.springframework.security.core-3.0.0.RELEASE.jar:/home/ktoso/.m2/repository/org/springframework/security/org.springframework.security.web/3.0.0.RELEASE/org.springframework.security.web-3.0.0.RELEASE.jar:/home/ktoso/.m2/repository/org/springframework/security/org.springframework.security.taglibs/3.0.0.RELEASE/org.springframework.security.taglibs-3.0.0.RELEASE.jar:/home/ktoso/.m2/repository/org/springframework/org.springframework.web/3.0.0.RELEASE/org.springframework.web-3.0.0.RELEASE.jar:/home/ktoso/.m2/repository/org/springframework/org.springframework.aspects/3.0.0.RELEASE/org.springframework.aspects-3.0.0.RELEASE.jar:/home/ktoso/.m2/repository/org/mongodb/mongo-java-driver/2.1/mongo-java-driver-2.1.jar:/home/ktoso/.m2/repository/com/google/code/morphia/0.96-SNAPSHOT/morphia-0.96-SNAPSHOT.jar:/home/ktoso/.m2/repository/cglib/cglib-nodep/2.1/cglib-nodep-2.1.jar:/home/ktoso/.m2/repository/com/thoughtworks/proxytoys/proxytoys/1.0/proxytoys-1.0.jar:/home/ktoso/.m2/repository/junit/junit/4.8.1/junit-4.8.1.jar:"/>
- <property name="java.specification.name" value="Java Platform API Specification"/>
- <property name="java.class.version" value="50.0"/>
- <property name="sun.management.compiler" value="HotSpot Tiered Compilers"/>
- <property name="os.version" value="2.6.34.6-47.fc13.x86_64"/>
- <property name="user.home" value="/home/ktoso"/>
- <property name="user.timezone" value="Europe/Warsaw"/>
- <property name="java.awt.printerjob" value="sun.print.PSPrinterJob"/>
- <property name="file.encoding" value="UTF-8"/>
- <property name="java.specification.version" value="1.6"/>
- <property name="user.name" value="ktoso"/>
- <property name="java.class.path" value="/home/ktoso/coding/xsolve/mongo-testing/target/test-classes:/home/ktoso/coding/xsolve/mongo-testing/target/classes:/home/ktoso/.m2/repository/org/springframework/spring-core/3.0.0.RELEASE/spring-core-3.0.0.RELEASE.jar:/home/ktoso/.m2/repository/org/springframework/spring-asm/3.0.0.RELEASE/spring-asm-3.0.0.RELEASE.jar:/home/ktoso/.m2/repository/commons-logging/commons-logging/1.1.1/commons-logging-1.1.1.jar:/home/ktoso/.m2/repository/org/springframework/spring-context-support/3.0.0.RELEASE/spring-context-support-3.0.0.RELEASE.jar:/home/ktoso/.m2/repository/org/springframework/spring-beans/3.0.0.RELEASE/spring-beans-3.0.0.RELEASE.jar:/home/ktoso/.m2/repository/org/springframework/spring-context/3.0.0.RELEASE/spring-context-3.0.0.RELEASE.jar:/home/ktoso/.m2/repository/org/springframework/spring-expression/3.0.0.RELEASE/spring-expression-3.0.0.RELEASE.jar:/home/ktoso/.m2/repository/org/springframework/security/spring-security-core/3.0.1.RELEASE/spring-security-core-3.0.1.RELEASE.jar:/home/ktoso/.m2/repository/org/springframework/spring-tx/3.0.0.RELEASE/spring-tx-3.0.0.RELEASE.jar:/home/ktoso/.m2/repository/aopalliance/aopalliance/1.0/aopalliance-1.0.jar:/home/ktoso/.m2/repository/org/springframework/spring-aop/3.0.0.RELEASE/spring-aop-3.0.0.RELEASE.jar:/home/ktoso/.m2/repository/org/aspectj/aspectjrt/1.6.8/aspectjrt-1.6.8.jar:/home/ktoso/.m2/repository/org/aspectj/aspectjweaver/1.6.8/aspectjweaver-1.6.8.jar:/home/ktoso/.m2/repository/org/springframework/security/org.springframework.security.config/3.0.0.RELEASE/org.springframework.security.config-3.0.0.RELEASE.jar:/home/ktoso/.m2/repository/org/apache/commons/com.springsource.org.apache.commons.logging/1.1.1/com.springsource.org.apache.commons.logging-1.1.1.jar:/home/ktoso/.m2/repository/org/springframework/org.springframework.beans/3.0.0.RELEASE/org.springframework.beans-3.0.0.RELEASE.jar:/home/ktoso/.m2/repository/org/springframework/org.springframework.core/3.0.0.RELEASE/org.springframework.core-3.0.0.RELEASE.jar:/home/ktoso/.m2/repository/org/springframework/org.springframework.asm/3.0.0.RELEASE/org.springframework.asm-3.0.0.RELEASE.jar:/home/ktoso/.m2/repository/org/springframework/org.springframework.context/3.0.0.RELEASE/org.springframework.context-3.0.0.RELEASE.jar:/home/ktoso/.m2/repository/org/springframework/org.springframework.aop/3.0.0.RELEASE/org.springframework.aop-3.0.0.RELEASE.jar:/home/ktoso/.m2/repository/org/aopalliance/com.springsource.org.aopalliance/1.0.0/com.springsource.org.aopalliance-1.0.0.jar:/home/ktoso/.m2/repository/org/springframework/org.springframework.expression/3.0.0.RELEASE/org.springframework.expression-3.0.0.RELEASE.jar:/home/ktoso/.m2/repository/org/springframework/security/org.springframework.security.core/3.0.0.RELEASE/org.springframework.security.core-3.0.0.RELEASE.jar:/home/ktoso/.m2/repository/org/springframework/security/org.springframework.security.web/3.0.0.RELEASE/org.springframework.security.web-3.0.0.RELEASE.jar:/home/ktoso/.m2/repository/org/springframework/security/org.springframework.security.taglibs/3.0.0.RELEASE/org.springframework.security.taglibs-3.0.0.RELEASE.jar:/home/ktoso/.m2/repository/org/springframework/org.springframework.web/3.0.0.RELEASE/org.springframework.web-3.0.0.RELEASE.jar:/home/ktoso/.m2/repository/org/springframework/org.springframework.aspects/3.0.0.RELEASE/org.springframework.aspects-3.0.0.RELEASE.jar:/home/ktoso/.m2/repository/org/mongodb/mongo-java-driver/2.1/mongo-java-driver-2.1.jar:/home/ktoso/.m2/repository/com/google/code/morphia/0.96-SNAPSHOT/morphia-0.96-SNAPSHOT.jar:/home/ktoso/.m2/repository/cglib/cglib-nodep/2.1/cglib-nodep-2.1.jar:/home/ktoso/.m2/repository/com/thoughtworks/proxytoys/proxytoys/1.0/proxytoys-1.0.jar:/home/ktoso/.m2/repository/junit/junit/4.8.1/junit-4.8.1.jar:"/>
- <property name="java.vm.specification.version" value="1.0"/>
- <property name="sun.arch.data.model" value="32"/>
- <property name="java.home" value="/usr/java/jdk1.6.0_21/jre"/>
- <property name="java.specification.vendor" value="Sun Microsystems Inc."/>
- <property name="user.language" value="pl"/>
- <property name="java.vm.info" value="mixed mode"/>
- <property name="java.version" value="1.6.0_21"/>
- <property name="java.ext.dirs" value="/usr/java/jdk1.6.0_21/jre/lib/ext:/usr/java/packages/lib/ext"/>
- <property name="sun.boot.class.path" value="/usr/java/jdk1.6.0_21/jre/lib/resources.jar:/usr/java/jdk1.6.0_21/jre/lib/rt.jar:/usr/java/jdk1.6.0_21/jre/lib/sunrsasign.jar:/usr/java/jdk1.6.0_21/jre/lib/jsse.jar:/usr/java/jdk1.6.0_21/jre/lib/jce.jar:/usr/java/jdk1.6.0_21/jre/lib/charsets.jar:/usr/java/jdk1.6.0_21/jre/classes"/>
- <property name="java.vendor" value="Sun Microsystems Inc."/>
- <property name="localRepository" value="/home/ktoso/.m2/repository"/>
- <property name="file.separator" value="/"/>
- <property name="java.vendor.url.bug" value="http://java.sun.com/cgi-bin/bugreport.cgi"/>
- <property name="sun.cpu.endian" value="little"/>
- <property name="sun.io.unicode.encoding" value="UnicodeLittle"/>
- <property name="sun.cpu.isalist" value=""/>
- </properties>
- <testcase time="0.006" classname="junit.framework.TestSuite$1" name="warning">
- <failure message="Exception in constructor: testPersistAndRestore (org.springframework.beans.factory.BeanCreationException: Error creating bean with name &apos;morphiaFactory&apos; defined in class path resource [spring-config.xml]: Error setting property values; nested exception is org.springframework.beans.PropertyBatchUpdateException; nested PropertyAccessExceptions (1) are:
-PropertyAccessException 1: org.springframework.beans.MethodInvocationException: Property &apos;port&apos; threw exception; nested exception is java.lang.NumberFormatException: For input string: &quot;${mongo.port}&quot;
- at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1341)
- at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1067)
- at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:511)
- at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:450)
- at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:290)
- at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)
- at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:287)
- at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:189)
- at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:557)
- at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:842)
- at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:416)
- at org.springframework.context.support.ClassPathXmlApplicationContext.&lt;init&gt;(ClassPathXmlApplicationContext.java:139)
- at org.springframework.context.support.ClassPathXmlApplicationContext.&lt;init&gt;(ClassPathXmlApplicationContext.java:83)
- at pl.xsolve.dao.EmployeeDaoMorphiaImplTest.&lt;init&gt;(EmployeeDaoMorphiaImplTest.java:14)
- at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
- at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
- at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
- at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
- at junit.framework.TestSuite.createTest(TestSuite.java:61)
- at junit.framework.TestSuite.addTestMethod(TestSuite.java:283)
- at junit.framework.TestSuite.&lt;init&gt;(TestSuite.java:146)
- at org.junit.internal.runners.JUnit38ClassRunner.&lt;init&gt;(JUnit38ClassRunner.java:71)
- at org.junit.internal.builders.JUnit3Builder.runnerForClass(JUnit3Builder.java:14)
- at org.junit.runners.model.RunnerBuilder.safeRunnerForClass(RunnerBuilder.java:57)
- at org.junit.internal.builders.AllDefaultPossibilitiesBuilder.runnerForClass(AllDefaultPossibilitiesBuilder.java:29)
- at org.junit.runners.model.RunnerBuilder.safeRunnerForClass(RunnerBuilder.java:57)
- at org.junit.internal.requests.ClassRequest.getRunner(ClassRequest.java:24)
- at org.apache.maven.surefire.junit4.JUnit4TestSet.&lt;init&gt;(JUnit4TestSet.java:45)
- at org.apache.maven.surefire.junit4.JUnit4DirectoryTestSuite.createTestSet(JUnit4DirectoryTestSuite.java:56)
- at org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.locateTestSets(AbstractDirectoryTestSuite.java:96)
- at org.apache.maven.surefire.Surefire.createSuiteFromDefinition(Surefire.java:209)
- at org.apache.maven.surefire.Surefire.run(Surefire.java:156)
- at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
- at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
- at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
- at java.lang.reflect.Method.invoke(Method.java:597)
- at org.apache.maven.surefire.booter.SurefireBooter.runSuitesInProcess(SurefireBooter.java:345)
- at org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.java:1009)
-Caused by: org.springframework.beans.PropertyBatchUpdateException; nested PropertyAccessExceptions (1) are:
-PropertyAccessException 1: org.springframework.beans.MethodInvocationException: Property &apos;port&apos; threw exception; nested exception is java.lang.NumberFormatException: For input string: &quot;${mongo.port}&quot;
- at org.springframework.beans.AbstractPropertyAccessor.setPropertyValues(AbstractPropertyAccessor.java:102)
- at org.springframework.beans.AbstractPropertyAccessor.setPropertyValues(AbstractPropertyAccessor.java:58)
- at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1338)
- ... 37 more
-)" type="junit.framework.AssertionFailedError">junit.framework.AssertionFailedError: Exception in constructor: testPersistAndRestore (org.springframework.beans.factory.BeanCreationException: Error creating bean with name &apos;morphiaFactory&apos; defined in class path resource [spring-config.xml]: Error setting property values; nested exception is org.springframework.beans.PropertyBatchUpdateException; nested PropertyAccessExceptions (1) are:
-PropertyAccessException 1: org.springframework.beans.MethodInvocationException: Property &apos;port&apos; threw exception; nested exception is java.lang.NumberFormatException: For input string: &quot;${mongo.port}&quot;
- at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1341)
- at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1067)
- at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:511)
- at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:450)
- at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:290)
- at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)
- at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:287)
- at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:189)
- at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:557)
- at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:842)
- at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:416)
- at org.springframework.context.support.ClassPathXmlApplicationContext.&lt;init&gt;(ClassPathXmlApplicationContext.java:139)
- at org.springframework.context.support.ClassPathXmlApplicationContext.&lt;init&gt;(ClassPathXmlApplicationContext.java:83)
- at pl.xsolve.dao.EmployeeDaoMorphiaImplTest.&lt;init&gt;(EmployeeDaoMorphiaImplTest.java:14)
- at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
- at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
- at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
- at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
- at junit.framework.TestSuite.createTest(TestSuite.java:61)
- at junit.framework.TestSuite.addTestMethod(TestSuite.java:283)
- at junit.framework.TestSuite.&lt;init&gt;(TestSuite.java:146)
- at org.junit.internal.runners.JUnit38ClassRunner.&lt;init&gt;(JUnit38ClassRunner.java:71)
- at org.junit.internal.builders.JUnit3Builder.runnerForClass(JUnit3Builder.java:14)
- at org.junit.runners.model.RunnerBuilder.safeRunnerForClass(RunnerBuilder.java:57)
- at org.junit.internal.builders.AllDefaultPossibilitiesBuilder.runnerForClass(AllDefaultPossibilitiesBuilder.java:29)
- at org.junit.runners.model.RunnerBuilder.safeRunnerForClass(RunnerBuilder.java:57)
- at org.junit.internal.requests.ClassRequest.getRunner(ClassRequest.java:24)
- at org.apache.maven.surefire.junit4.JUnit4TestSet.&lt;init&gt;(JUnit4TestSet.java:45)
- at org.apache.maven.surefire.junit4.JUnit4DirectoryTestSuite.createTestSet(JUnit4DirectoryTestSuite.java:56)
- at org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.locateTestSets(AbstractDirectoryTestSuite.java:96)
- at org.apache.maven.surefire.Surefire.createSuiteFromDefinition(Surefire.java:209)
- at org.apache.maven.surefire.Surefire.run(Surefire.java:156)
- at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
- at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
- at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
- at java.lang.reflect.Method.invoke(Method.java:597)
- at org.apache.maven.surefire.booter.SurefireBooter.runSuitesInProcess(SurefireBooter.java:345)
- at org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.java:1009)
-Caused by: org.springframework.beans.PropertyBatchUpdateException; nested PropertyAccessExceptions (1) are:
-PropertyAccessException 1: org.springframework.beans.MethodInvocationException: Property &apos;port&apos; threw exception; nested exception is java.lang.NumberFormatException: For input string: &quot;${mongo.port}&quot;
- at org.springframework.beans.AbstractPropertyAccessor.setPropertyValues(AbstractPropertyAccessor.java:102)
- at org.springframework.beans.AbstractPropertyAccessor.setPropertyValues(AbstractPropertyAccessor.java:58)
- at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1338)
- ... 37 more
-)
- at junit.framework.Assert.fail(Assert.java:47)
- at junit.framework.TestSuite$1.runTest(TestSuite.java:97)
- at junit.framework.TestCase.runBare(TestCase.java:134)
- at junit.framework.TestResult$1.protect(TestResult.java:110)
- at junit.framework.TestResult.runProtected(TestResult.java:128)
- at junit.framework.TestResult.run(TestResult.java:113)
- at junit.framework.TestCase.run(TestCase.java:124)
- at junit.framework.TestSuite.runTest(TestSuite.java:232)
- at junit.framework.TestSuite.run(TestSuite.java:227)
- at org.junit.internal.runners.JUnit38ClassRunner.run(JUnit38ClassRunner.java:83)
- at org.apache.maven.surefire.junit4.JUnit4TestSet.execute(JUnit4TestSet.java:62)
- at org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.executeTestSet(AbstractDirectoryTestSuite.java:140)
- at org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.execute(AbstractDirectoryTestSuite.java:127)
- at org.apache.maven.surefire.Surefire.run(Surefire.java:177)
- at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
- at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
- at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
- at java.lang.reflect.Method.invoke(Method.java:597)
- at org.apache.maven.surefire.booter.SurefireBooter.runSuitesInProcess(SurefireBooter.java:345)
- at org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.java:1009)
-</failure>
- </testcase>
-</testsuite>
View
73 target/surefire-reports/pl.xsolve.dao.EmployeeDaoMorphiaImplTest.txt
@@ -1,73 +0,0 @@
--------------------------------------------------------------------------------
-Test set: pl.xsolve.dao.EmployeeDaoMorphiaImplTest
--------------------------------------------------------------------------------
-Tests run: 1, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 0.038 sec <<< FAILURE!
-warning(junit.framework.TestSuite$1) Time elapsed: 0.009 sec <<< FAILURE!
-junit.framework.AssertionFailedError: Exception in constructor: testPersistAndRestore (org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'morphiaFactory' defined in class path resource [spring-config.xml]: Error setting property values; nested exception is org.springframework.beans.PropertyBatchUpdateException; nested PropertyAccessExceptions (1) are:
-PropertyAccessException 1: org.springframework.beans.MethodInvocationException: Property 'port' threw exception; nested exception is java.lang.NumberFormatException: For input string: "${mongo.port}"
- at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1341)
- at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1067)
- at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:511)
- at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:450)
- at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:290)
- at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)
- at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:287)
- at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:189)
- at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:557)
- at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:842)
- at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:416)
- at org.springframework.context.support.ClassPathXmlApplicationContext.<init>(ClassPathXmlApplicationContext.java:139)
- at org.springframework.context.support.ClassPathXmlApplicationContext.<init>(ClassPathXmlApplicationContext.java:83)
- at pl.xsolve.dao.EmployeeDaoMorphiaImplTest.<init>(EmployeeDaoMorphiaImplTest.java:14)
- at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
- at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
- at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
- at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
- at junit.framework.TestSuite.createTest(TestSuite.java:61)
- at junit.framework.TestSuite.addTestMethod(TestSuite.java:283)
- at junit.framework.TestSuite.<init>(TestSuite.java:146)
- at org.junit.internal.runners.JUnit38ClassRunner.<init>(JUnit38ClassRunner.java:71)
- at org.junit.internal.builders.JUnit3Builder.runnerForClass(JUnit3Builder.java:14)
- at org.junit.runners.model.RunnerBuilder.safeRunnerForClass(RunnerBuilder.java:57)
- at org.junit.internal.builders.AllDefaultPossibilitiesBuilder.runnerForClass(AllDefaultPossibilitiesBuilder.java:29)
- at org.junit.runners.model.RunnerBuilder.safeRunnerForClass(RunnerBuilder.java:57)
- at org.junit.internal.requests.ClassRequest.getRunner(ClassRequest.java:24)
- at org.apache.maven.surefire.junit4.JUnit4TestSet.<init>(JUnit4TestSet.java:45)
- at org.apache.maven.surefire.junit4.JUnit4DirectoryTestSuite.createTestSet(JUnit4DirectoryTestSuite.java:56)
- at org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.locateTestSets(AbstractDirectoryTestSuite.java:96)
- at org.apache.maven.surefire.Surefire.createSuiteFromDefinition(Surefire.java:209)
- at org.apache.maven.surefire.Surefire.run(Surefire.java:156)
- at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
- at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
- at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
- at java.lang.reflect.Method.invoke(Method.java:597)
- at org.apache.maven.surefire.booter.SurefireBooter.runSuitesInProcess(SurefireBooter.java:345)
- at org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.java:1009)
-Caused by: org.springframework.beans.PropertyBatchUpdateException; nested PropertyAccessExceptions (1) are:
-PropertyAccessException 1: org.springframework.beans.MethodInvocationException: Property 'port' threw exception; nested exception is java.lang.NumberFormatException: For input string: "${mongo.port}"
- at org.springframework.beans.AbstractPropertyAccessor.setPropertyValues(AbstractPropertyAccessor.java:102)
- at org.springframework.beans.AbstractPropertyAccessor.setPropertyValues(AbstractPropertyAccessor.java:58)
- at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1338)
- ... 37 more
-)
- at junit.framework.Assert.fail(Assert.java:47)
- at junit.framework.TestSuite$1.runTest(TestSuite.java:97)
- at junit.framework.TestCase.runBare(TestCase.java:134)
- at junit.framework.TestResult$1.protect(TestResult.java:110)
- at junit.framework.TestResult.runProtected(TestResult.java:128)
- at junit.framework.TestResult.run(TestResult.java:113)
- at junit.framework.TestCase.run(TestCase.java:124)
- at junit.framework.TestSuite.runTest(TestSuite.java:232)
- at junit.framework.TestSuite.run(TestSuite.java:227)
- at org.junit.internal.runners.JUnit38ClassRunner.run(JUnit38ClassRunner.java:83)
- at org.apache.maven.surefire.junit4.JUnit4TestSet.execute(JUnit4TestSet.java:62)
- at org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.executeTestSet(AbstractDirectoryTestSuite.java:140)
- at org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.execute(AbstractDirectoryTestSuite.java:127)
- at org.apache.maven.surefire.Surefire.run(Surefire.java:177)
- at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
- at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
- at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
- at java.lang.reflect.Method.invoke(Method.java:597)
- at org.apache.maven.surefire.booter.SurefireBooter.runSuitesInProcess(SurefireBooter.java:345)
- at org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.java:1009)
-
View
BIN  target/test-classes/pl/xsolve/dao/EmployeeDaoMorphiaImplTest.class
Binary file not shown
Please sign in to comment.
Something went wrong with that request. Please try again.