Skip to content

Instantly share code, notes, and snippets.

@dabd
Created September 23, 2014 12:30
Show Gist options
  • Save dabd/f227f73ce20520a6635e to your computer and use it in GitHub Desktop.
Save dabd/f227f73ce20520a6635e to your computer and use it in GitHub Desktop.
Configuring TestNG with: org.apache.maven.surefire.testng.conf.TestNG652Configurator@60acc399
Tests run: 1, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 2.326 sec <<< FAILURE!
shouldMapHashMapToFoo(org.me.modelmapper.JsonModelMapperTest) Time elapsed: 0.186 sec <<< FAILURE!
org.modelmapper.ConfigurationException: ModelMapper configuration errors:
1) Invalid source method java.util.HashMap.get(). Ensure that method has zero parameters and does not return void.
2) Invalid source method java.util.HashMap.get(). Ensure that method has zero parameters and does not return void.
2 errors
at org.modelmapper.internal.Errors.throwConfigurationExceptionIfErrorsExist(Errors.java:241)
at org.modelmapper.internal.ExplicitMappingBuilder.visitPropertyMap(ExplicitMappingBuilder.java:228)
at org.modelmapper.PropertyMap.configure(PropertyMap.java:380)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at org.modelmapper.internal.ExplicitMappingBuilder.build(ExplicitMappingBuilder.java:194)
at org.modelmapper.internal.TypeMapImpl.addMappings(TypeMapImpl.java:72)
at org.modelmapper.internal.TypeMapStore.getOrCreate(TypeMapStore.java:101)
at org.modelmapper.ModelMapper.addMappings(ModelMapper.java:93)
at org.me.modelmapper.JsonModelMapperTest.shouldMapHashMapToFoo(JsonModelMapperTest.java:354)
Results :
Failed tests: shouldMapHashMapToFoo(org.me.modelmapper.JsonModelMapperTest): ModelMapper configuration errors:
(..)
Tests run: 1, Failures: 1, Errors: 0, Skipped: 0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment