Looks to me that most of these failing tests have to do with 12h/24h
convention differences ... We probably have an omission of that flag in our
DateUtils class.


2013/11/26 Arvind Prabhakar <[email protected]>

> Thanks Ankit. The Disclaimer file looks good to me.
>
> Also, regarding build failures - I was not able to find information on how
> to build the project. Hence I ran mvn install, which resulted in a few test
> failures. Adding build instructions in the readme file (or another file of
> your choice) that clearly identifies how to build and run tests for the
> project would be a great help. I am pasting below the full build output for
> your reference.
>
> Regards,
> Arvind Prabhakar
> -----
> [INFO] Scanning for projects...
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Reactor Build Order:
> [INFO]
> [INFO] MetaModel
> [INFO] MetaModel core API
> [INFO] MetaModel module for collection and POJO-based DataContexts.
> [INFO] MetaModel module for fixed width value files
> [INFO] MetaModel module for Excel spreadsheets
> [INFO] MetaModel module for comma-separated value (CSV) files
> [INFO] MetaModel module for XML files
> [INFO] MetaModel module for relational JDBC databases
> [INFO] MetaModel module for MongoDB databases
> [INFO] MetaModel module for CouchDB databases
> [INFO] MetaModel module for OpenOffice.org database files
> [INFO] MetaModel module for Salesforce.com
> [INFO] MetaModel module for SugarCRM
> [INFO] MetaModel full package, including DataContext factories
> [INFO]
>
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Building MetaModel 4.0.1-incubating-SNAPSHOT
> [INFO]
> ------------------------------------------------------------------------
> [INFO]
> [INFO] --- maven-enforcer-plugin:1.0.1:enforce (enforce-versions) @
> MetaModel ---
> [INFO]
> [INFO] --- maven-remote-resources-plugin:1.4:process (default) @ MetaModel
> ---
> [INFO]
> [INFO] --- apache-rat-plugin:0.8:check (rat-verify) @ MetaModel ---
> [INFO] Exclude: CHANGES.txt
> [INFO] Exclude: README.txt
> [INFO] Exclude: NOTICE.txt
> [INFO] Exclude: LICENSE.txt
> [INFO] Exclude: KEYS
> [INFO] Exclude: **/.gitignore/**
> [INFO] Exclude: .git/**
> [INFO] Exclude: **/src/test/**
> [INFO] Exclude: **/src/site/**
> [INFO] Exclude: **/.project
> [INFO] Exclude: **/.classpath
> [INFO] Exclude: **/.settings/**
> [INFO] Exclude: **/target/**
> [INFO] Exclude: DEPENDENCIES
> [INFO]
> [INFO] --- maven-site-plugin:3.2:attach-descriptor (attach-descriptor) @
> MetaModel ---
> [INFO]
> [INFO] --- maven-license-plugin:1.4.0:check (verify-license-headers) @
> MetaModel ---
> [INFO] Checking licenses...
> [INFO]
> [INFO] --- maven-install-plugin:2.3.1:install (default-install) @ MetaModel
> ---
> [INFO] Installing /Users/arvind/Projects/metamodel/pom.xml to
>
> /Users/arvind/.m2/repository/org/apache/metamodel/MetaModel/4.0.1-incubating-SNAPSHOT/MetaModel-4.0.1-incubating-SNAPSHOT.pom
> [INFO] Installing
>
> /Users/arvind/Projects/metamodel/target/MetaModel-4.0.1-incubating-SNAPSHOT-site.xml
> to
>
> /Users/arvind/.m2/repository/org/apache/metamodel/MetaModel/4.0.1-incubating-SNAPSHOT/MetaModel-4.0.1-incubating-SNAPSHOT-site.xml
> [INFO]
>
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Building MetaModel core API 4.0.1-incubating-SNAPSHOT
> [INFO]
> ------------------------------------------------------------------------
> [INFO]
> [INFO] --- maven-enforcer-plugin:1.0.1:enforce (enforce-versions) @
> MetaModel-core ---
> [INFO]
> [INFO] --- maven-remote-resources-plugin:1.4:process (default) @
> MetaModel-core ---
> [INFO]
> [INFO] --- maven-resources-plugin:2.6:resources (default-resources) @
> MetaModel-core ---
> [INFO] Using 'UTF-8' encoding to copy filtered resources.
> [INFO] skip non existing resourceDirectory
> /Users/arvind/Projects/metamodel/core/src/main/resources
> [INFO] Copying 3 resources
> [INFO]
> [INFO] --- maven-compiler-plugin:2.5.1:compile (default-compile) @
> MetaModel-core ---
> [INFO] Compiling 245 source files to
> /Users/arvind/Projects/metamodel/core/target/classes
> [INFO]
> [INFO] --- maven-resources-plugin:2.6:testResources (default-testResources)
> @ MetaModel-core ---
> [INFO] Using 'UTF-8' encoding to copy filtered resources.
> [INFO] Copying 6 resources
> [INFO] Copying 3 resources
> [INFO]
> [INFO] --- maven-compiler-plugin:2.5.1:testCompile (default-testCompile) @
> MetaModel-core ---
> [INFO] Compiling 83 source files to
> /Users/arvind/Projects/metamodel/core/target/test-classes
> [INFO]
> [INFO] --- maven-surefire-plugin:2.12.4:test (default-test) @
> MetaModel-core ---
> [INFO] Surefire report directory:
> /Users/arvind/Projects/metamodel/core/target/surefire-reports
>
> -------------------------------------------------------
>  T E S T S
> -------------------------------------------------------
> Running org.apache.metamodel.AbstractDataContextTest
> Tests run: 8, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.054 sec
> Running org.apache.metamodel.CompositeDataContextTest
> Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.047 sec
> Running org.apache.metamodel.convert.ColumnTypeDetectorTest
> Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.019 sec
> Running org.apache.metamodel.convert.ConvertedDataSetInterceptorTest
> Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.013 sec
> Running org.apache.metamodel.convert.ConvertedRowInsertionInterceptorTest
> Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.016 sec
> Running org.apache.metamodel.convert.ConvertersTest
> Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.009 sec
> Running org.apache.metamodel.convert.StringToBooleanConverterTest
> Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.001 sec
> Running org.apache.metamodel.convert.StringToDateConverterTest
> Tests run: 4, Failures: 2, Errors: 0, Skipped: 0, Time elapsed: 0.017 sec
> <<< FAILURE!
> testToVirtualNoArgs(org.apache.metamodel.convert.StringToDateConverterTest)
>  Time elapsed: 0.014 sec  <<< FAILURE!
> junit.framework.AssertionFailedError: expected:<Fri Dec 31 12:00:00 PST
> 2010> but was:<Fri Dec 31 00:00:00 PST 2010>
>  at junit.framework.Assert.fail(Assert.java:57)
> at junit.framework.Assert.failNotEquals(Assert.java:329)
>  at junit.framework.Assert.assertEquals(Assert.java:78)
> at junit.framework.Assert.assertEquals(Assert.java:86)
>  at junit.framework.TestCase.assertEquals(TestCase.java:253)
> at
>
> org.apache.metamodel.convert.StringToDateConverterTest.testToVirtualNoArgs(StringToDateConverterTest.java:45)
>  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 junit.framework.TestCase.runTest(TestCase.java:176)
> at junit.framework.TestCase.runBare(TestCase.java:141)
>  at junit.framework.TestResult$1.protect(TestResult.java:122)
> at junit.framework.TestResult.runProtected(TestResult.java:142)
>  at junit.framework.TestResult.run(TestResult.java:125)
> at junit.framework.TestCase.run(TestCase.java:129)
>  at junit.framework.TestSuite.runTest(TestSuite.java:255)
> at junit.framework.TestSuite.run(TestSuite.java:250)
>  at
>
> org.junit.internal.runners.JUnit38ClassRunner.run(JUnit38ClassRunner.java:84)
> at
>
> org.apache.maven.surefire.junit4.JUnit4Provider.execute(JUnit4Provider.java:252)
>  at
>
> org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:141)
> at
>
> org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:112)
>  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.util.ReflectionUtils.invokeMethodWithArray(ReflectionUtils.java:189)
> at
>
> org.apache.maven.surefire.booter.ProviderFactory$ProviderProxy.invoke(ProviderFactory.java:165)
>  at
>
> org.apache.maven.surefire.booter.ProviderFactory.invokeProvider(ProviderFactory.java:85)
> at
>
> org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:115)
>  at
> org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:75)
>
>
> testToVirtualSimpleDateFormat(org.apache.metamodel.convert.StringToDateConverterTest)
>  Time elapsed: 0 sec  <<< FAILURE!
> junit.framework.AssertionFailedError: expected:<Fri Dec 31 12:00:00 PST
> 2010> but was:<Fri Dec 31 00:00:00 PST 2010>
> at junit.framework.Assert.fail(Assert.java:57)
>  at junit.framework.Assert.failNotEquals(Assert.java:329)
> at junit.framework.Assert.assertEquals(Assert.java:78)
>  at junit.framework.Assert.assertEquals(Assert.java:86)
> at junit.framework.TestCase.assertEquals(TestCase.java:253)
>  at
>
> org.apache.metamodel.convert.StringToDateConverterTest.testToVirtualSimpleDateFormat(StringToDateConverterTest.java:36)
> 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 junit.framework.TestCase.runTest(TestCase.java:176)
>  at junit.framework.TestCase.runBare(TestCase.java:141)
> at junit.framework.TestResult$1.protect(TestResult.java:122)
>  at junit.framework.TestResult.runProtected(TestResult.java:142)
> at junit.framework.TestResult.run(TestResult.java:125)
>  at junit.framework.TestCase.run(TestCase.java:129)
> at junit.framework.TestSuite.runTest(TestSuite.java:255)
>  at junit.framework.TestSuite.run(TestSuite.java:250)
> at
>
> org.junit.internal.runners.JUnit38ClassRunner.run(JUnit38ClassRunner.java:84)
>  at
>
> org.apache.maven.surefire.junit4.JUnit4Provider.execute(JUnit4Provider.java:252)
> at
>
> org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:141)
>  at
>
> org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:112)
> 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.util.ReflectionUtils.invokeMethodWithArray(ReflectionUtils.java:189)
>  at
>
> org.apache.maven.surefire.booter.ProviderFactory$ProviderProxy.invoke(ProviderFactory.java:165)
> at
>
> org.apache.maven.surefire.booter.ProviderFactory.invokeProvider(ProviderFactory.java:85)
>  at
>
> org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:115)
> at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:75)
>
> Running org.apache.metamodel.convert.StringToDoubleConverterTest
> Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0 sec
> Running org.apache.metamodel.convert.StringToIntegerConverterTest
> Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.001 sec
> Running org.apache.metamodel.create.AbstractCreateTableBuilderTest
> Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.002 sec
> Running org.apache.metamodel.data.DataSetIteratorTest
> Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.017 sec
> Running org.apache.metamodel.data.DataSetTableModelTest
> Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.001 sec
> Running org.apache.metamodel.data.DefaultRowTest
> Tests run: 6, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.069 sec
> Running org.apache.metamodel.data.FirstRowDataSetTest
> Tests run: 4, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.006 sec
> Running org.apache.metamodel.data.RowPublisherDataSetTest
> Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 1.04 sec
> Running org.apache.metamodel.data.RowTest
> Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.002 sec
> Running org.apache.metamodel.data.StyleBuilderTest
> Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.001 sec
> Running org.apache.metamodel.delete.AbstractRowDeletionCallbackTest
> Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.006 sec
> Running org.apache.metamodel.insert.AbstractInsertBuilderTest
> Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.001 sec
> Running org.apache.metamodel.intercept.InterceptableDataContextTest
> Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.004 sec
> Running org.apache.metamodel.intercept.InterceptorListTest
> Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0 sec
> Running org.apache.metamodel.intercept.InterceptorsTest
> Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0 sec
> Running org.apache.metamodel.MetaModelHelperTest
> Tests run: 12, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.006 sec
> Running org.apache.metamodel.query.builder.GroupedQueryBuilderImplTest
> Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.004 sec
> Running org.apache.metamodel.query.builder.SyntaxExamplesTest
> Tests run: 6, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.005 sec
> Running org.apache.metamodel.query.builder.WhereBuilderImplTest
> Tests run: 5, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.002 sec
> Running org.apache.metamodel.query.DefaultCompiledQueryTest
> Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.018 sec
> Running org.apache.metamodel.query.FilterItemTest
> Tests run: 13, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.008 sec
> Running org.apache.metamodel.query.FromClauseTest
> Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0 sec
> Running org.apache.metamodel.query.FromItemTest
> Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.001 sec
> Running org.apache.metamodel.query.FunctionTypeTest
> Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.001 sec
> Running org.apache.metamodel.query.GroupByItemTest
> Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0 sec
> Running org.apache.metamodel.query.OperatorTypeTest
> Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0 sec
> Running org.apache.metamodel.query.OrderByItemTest
> Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0 sec
> Running org.apache.metamodel.query.parser.QueryParserTest
> Tests run: 24, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.022 sec
> Running org.apache.metamodel.query.parser.QueryPartParserTest
> Tests run: 9, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0 sec
> Running org.apache.metamodel.query.QueryTest
> Tests run: 11, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.024 sec
> Running org.apache.metamodel.query.SelectClauseTest
> Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0 sec
> Running org.apache.metamodel.query.SelectItemTest
> Tests run: 4, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0 sec
> Running org.apache.metamodel.QueryPostprocessDataContextTest
> Tests run: 27, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.05 sec
> Running org.apache.metamodel.schema.ColumnTypeTest
> Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.015 sec
> Running org.apache.metamodel.schema.DataTypeTest
> Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0 sec
> Running org.apache.metamodel.schema.ImmutableSchemaTest
> Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0 sec
> Running org.apache.metamodel.schema.JavaTypesTest
> Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0 sec
> Running org.apache.metamodel.schema.MutableColumnTest
> Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0 sec
> Running org.apache.metamodel.schema.MutableSchemaTest
> Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0 sec
> Running org.apache.metamodel.schema.MutableTableTest
> Tests run: 4, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0 sec
> Running org.apache.metamodel.schema.SchemaModelTest
> Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.001 sec
> Running org.apache.metamodel.schema.TableTypeTest
> Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0 sec
> Running org.apache.metamodel.SchemaNameComparatorTest
> Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.009 sec
> Running org.apache.metamodel.util.AlphabeticSequenceTest
> Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0 sec
> Running org.apache.metamodel.util.BaseObjectTest
> Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0 sec
> Running org.apache.metamodel.util.BooleanComparatorTest
> Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0 sec
> Running org.apache.metamodel.util.ClasspathResourceTest
> Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0 sec
> Running org.apache.metamodel.util.CollectionUtilsTest
> Tests run: 7, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0 sec
> Running org.apache.metamodel.util.DateUtilsTest
> Tests run: 1, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 0 sec <<<
> FAILURE!
> testGet(org.apache.metamodel.util.DateUtilsTest)  Time elapsed: 0 sec  <<<
> FAILURE!
> junit.framework.ComparisonFailure: expected:<2010-12-24 [00]:00:00> but
> was:<2010-12-24 [12]:00:00>
>  at junit.framework.Assert.assertEquals(Assert.java:100)
> at junit.framework.Assert.assertEquals(Assert.java:107)
>  at junit.framework.TestCase.assertEquals(TestCase.java:269)
> at org.apache.metamodel.util.DateUtilsTest.testGet(DateUtilsTest.java:32)
>  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 junit.framework.TestCase.runTest(TestCase.java:176)
> at junit.framework.TestCase.runBare(TestCase.java:141)
>  at junit.framework.TestResult$1.protect(TestResult.java:122)
> at junit.framework.TestResult.runProtected(TestResult.java:142)
>  at junit.framework.TestResult.run(TestResult.java:125)
> at junit.framework.TestCase.run(TestCase.java:129)
>  at junit.framework.TestSuite.runTest(TestSuite.java:255)
> at junit.framework.TestSuite.run(TestSuite.java:250)
>  at
>
> org.junit.internal.runners.JUnit38ClassRunner.run(JUnit38ClassRunner.java:84)
> at
>
> org.apache.maven.surefire.junit4.JUnit4Provider.execute(JUnit4Provider.java:252)
>  at
>
> org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:141)
> at
>
> org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:112)
>  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.util.ReflectionUtils.invokeMethodWithArray(ReflectionUtils.java:189)
> at
>
> org.apache.maven.surefire.booter.ProviderFactory$ProviderProxy.invoke(ProviderFactory.java:165)
>  at
>
> org.apache.maven.surefire.booter.ProviderFactory.invokeProvider(ProviderFactory.java:85)
> at
>
> org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:115)
>  at
> org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:75)
>
> Running org.apache.metamodel.util.EqualsBuilderTest
> Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.009 sec
> Running org.apache.metamodel.util.ExclusionPredicateTest
> Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0 sec
> Running org.apache.metamodel.util.FileHelperTest
> Tests run: 4, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.001 sec
> Running org.apache.metamodel.util.FormatHelperTest
> Tests run: 2, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 0.003 sec
> <<< FAILURE!
> testFormatSqlValue(org.apache.metamodel.util.FormatHelperTest)  Time
> elapsed: 0.001 sec  <<< FAILURE!
> junit.framework.ComparisonFailure: expected:<...MESTAMP '2011-07-24
> [00]:00:00'> but was:<...MESTAMP '2011-07-24 [12]:00:00'>
> at junit.framework.Assert.assertEquals(Assert.java:100)
>  at junit.framework.Assert.assertEquals(Assert.java:107)
> at junit.framework.TestCase.assertEquals(TestCase.java:269)
>  at
>
> org.apache.metamodel.util.FormatHelperTest.testFormatSqlValue(FormatHelperTest.java:42)
> 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 junit.framework.TestCase.runTest(TestCase.java:176)
>  at junit.framework.TestCase.runBare(TestCase.java:141)
> at junit.framework.TestResult$1.protect(TestResult.java:122)
>  at junit.framework.TestResult.runProtected(TestResult.java:142)
> at junit.framework.TestResult.run(TestResult.java:125)
>  at junit.framework.TestCase.run(TestCase.java:129)
> at junit.framework.TestSuite.runTest(TestSuite.java:255)
>  at junit.framework.TestSuite.run(TestSuite.java:250)
> at
>
> org.junit.internal.runners.JUnit38ClassRunner.run(JUnit38ClassRunner.java:84)
>  at
>
> org.apache.maven.surefire.junit4.JUnit4Provider.execute(JUnit4Provider.java:252)
> at
>
> org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:141)
>  at
>
> org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:112)
> 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.util.ReflectionUtils.invokeMethodWithArray(ReflectionUtils.java:189)
>  at
>
> org.apache.maven.surefire.booter.ProviderFactory$ProviderProxy.invoke(ProviderFactory.java:165)
> at
>
> org.apache.maven.surefire.booter.ProviderFactory.invokeProvider(ProviderFactory.java:85)
>  at
>
> org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:115)
> at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:75)
>
> Running org.apache.metamodel.util.InclusionPredicateTest
> Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.002 sec
> Running org.apache.metamodel.util.InMemoryResourceTest
> Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.003 sec
> Running org.apache.metamodel.util.LazyRefTest
> Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.024 sec
> Running org.apache.metamodel.util.MonthTest
> Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0 sec
> Running org.apache.metamodel.util.NumberComparatorTest
> Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0 sec
> Running org.apache.metamodel.util.ObjectComparatorTest
> Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.001 sec
> Running org.apache.metamodel.util.ResourceUtilsTest
> Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.001 sec
> Running org.apache.metamodel.util.SerializableRefTest
> Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.002 sec
> Running org.apache.metamodel.util.SimpleRefTest
> Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0 sec
> Running org.apache.metamodel.util.TimeComparatorTest
> Tests run: 4, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.212 sec
> Running org.apache.metamodel.util.ToStringComparatorTest
> Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0 sec
> Running org.apache.metamodel.util.UrlResourceTest
> Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0 sec
> Running org.apache.metamodel.util.WeekdayTest
> Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.001 sec
> Running org.apache.metamodel.util.WildcardPatternTest
> Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0 sec
>
> Results :
>
> Failed tests:
>
> testToVirtualNoArgs(org.apache.metamodel.convert.StringToDateConverterTest):
> expected:<Fri Dec 31 12:00:00 PST 2010> but was:<Fri Dec 31 00:00:00 PST
> 2010>
>
>
> testToVirtualSimpleDateFormat(org.apache.metamodel.convert.StringToDateConverterTest):
> expected:<Fri Dec 31 12:00:00 PST 2010> but was:<Fri Dec 31 00:00:00 PST
> 2010>
>   testGet(org.apache.metamodel.util.DateUtilsTest): expected:<2010-12-24
> [00]:00:00> but was:<2010-12-24 [12]:00:00>
>   testFormatSqlValue(org.apache.metamodel.util.FormatHelperTest):
> expected:<...MESTAMP '2011-07-24 [00]:00:00'> but was:<...MESTAMP
> '2011-07-24 [12]:00:00'>
>
> Tests run: 255, Failures: 4, Errors: 0, Skipped: 0
>
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Reactor Summary:
> [INFO]
> [INFO] MetaModel ......................................... SUCCESS [2.827s]
> [INFO] MetaModel core API ................................ FAILURE [6.589s]
> [INFO] MetaModel module for collection and POJO-based DataContexts.
>  SKIPPED
> [INFO] MetaModel module for fixed width value files ...... SKIPPED
> [INFO] MetaModel module for Excel spreadsheets ........... SKIPPED
> [INFO] MetaModel module for comma-separated value (CSV) files  SKIPPED
> [INFO] MetaModel module for XML files .................... SKIPPED
> [INFO] MetaModel module for relational JDBC databases .... SKIPPED
> [INFO] MetaModel module for MongoDB databases ............ SKIPPED
> [INFO] MetaModel module for CouchDB databases ............ SKIPPED
> [INFO] MetaModel module for OpenOffice.org database files  SKIPPED
> [INFO] MetaModel module for Salesforce.com ............... SKIPPED
> [INFO] MetaModel module for SugarCRM ..................... SKIPPED
> [INFO] MetaModel full package, including DataContext factories  SKIPPED
> [INFO]
> ------------------------------------------------------------------------
> [INFO] BUILD FAILURE
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Total time: 9.860s
> [INFO] Finished at: Tue Nov 26 13:00:30 PST 2013
> [INFO] Final Memory: 20M/81M
> [INFO]
> ------------------------------------------------------------------------
> [ERROR] Failed to execute goal
> org.apache.maven.plugins:maven-surefire-plugin:2.12.4:test (default-test)
> on project MetaModel-core: There are test failures.
> [ERROR]
> [ERROR] Please refer to
> /Users/arvind/Projects/metamodel/core/target/surefire-reports for the
> individual test results.
> [ERROR] -> [Help 1]
> [ERROR]
> [ERROR] To see the full stack trace of the errors, re-run Maven with the -e
> switch.
> [ERROR] Re-run Maven using the -X switch to enable full debug logging.
> [ERROR]
> [ERROR] For more information about the errors and possible solutions,
> please read the following articles:
> [ERROR] [Help 1]
> http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException
> [ERROR]
> [ERROR] After correcting the problems, you can resume the build with the
> command
> [ERROR]   mvn <goals> -rf :MetaModel-core
>
>
>
>
>
>
>
> On Tue, Nov 26, 2013 at 6:01 AM, Ankit Kumar <[email protected]
> >wrote:
>
> > Thanks Kasper for pointing to the exact fix.
> >
> > @Arvind, I have committed the fix for first 2 issues. May be you want to
> > review the Disclaimer file content.
> > Also if you share more info on the test failure on MacOS then we can
> solve
> > that. I also don't have a Mac.
> >
> > Regards
> > Ankit
> >
> >
> > On Tue, Nov 26, 2013 at 9:46 AM, Kasper Sørensen <
> > [email protected]> wrote:
> >
> > > Build works here if I fix the rat plugin by adding this on line 197 of
> > > /pom.xml:
> > >
> > >   <exclude>DEPENDENCIES</exclude>
> > >
> > > Arvind, can you elaborate which tests fail on your Mac OS? Sorry I
> don't
> > > have a Mac OS myself to test it on, it might be a bug in one of the
> > > unittests.
> > >
> > > Kasper
> > >
> > >
> > > 2013/11/26 Kasper Sørensen <[email protected]>
> > >
> > > > Thank you for pointing these things out Arvind. So I guess we still
> > have
> > > a
> > > > little work to do Ankit :-) Are you up for making these small
> > > > modifications/additions?
> > > >
> > > >
> > > > 2013/11/22 Arvind Prabhakar <[email protected]>
> > > >
> > > >> Ankit,
> > > >>
> > > >> Thanks for your hard work and that of the fellow community members
> to
> > > get
> > > >> this release candidate out. This is great progress and I believe you
> > are
> > > >> very close to making your first incubating release now. There are a
> > few
> > > >> issues that I noticed that have been mentioned below. Please glance
> > > >> through
> > > >> them and let me know if you have any questions.
> > > >>
> > > >> I verified the following for
> > > MetaModel-4.0.0-incubating-source-release.zip
> > > >> [1] only.
> > > >>
> > > >> The following checked out OK:
> > > >> * Verified signature
> > > >> * Verified checksums (md5, sha1)
> > > >> * Verified tag against source distribution
> > > >>
> > > >> Following issues were found:
> > > >> * RAT test fails in the source artifact since it does not exclude
> > > >> DEPENDENCIES file.
> > > >> * No DISCLAIMER file found.  See [2] for details.
> > > >> * Source distribution does not build (test failures on Mac OSX
> 10.9),
> > > and
> > > >> no build instructions found.
> > > >>
> > > >> Give the above I am -1 for this release candidate.
> > > >>
> > > >> [1]
> > > >>
> > > >>
> > >
> >
> https://repository.apache.org/content/repositories/orgapachemetamodel-142/org/apache/metamodel/MetaModel/4.0.0-incubating/MetaModel-4.0.0-incubating-source-release.zip
> > > >> [2]
> > > >>
> > >
> >
> http://incubator.apache.org/guides/releasemanagement.html#notes-disclaimer
> > > >>
> > > >> Regards,
> > > >> Arvind Prabhakar
> > > >>
> > > >>
> > > >> On Wed, Nov 20, 2013 at 4:35 AM, Ankit Kumar <
> [email protected]
> > > >> >wrote:
> > > >>
> > > >> > Hi All,
> > > >> >
> > > >> > Please vote on releasing the following candidate as Apache
> Metamodel
> > > >> > (incubating) version 4.0.0.
> > > >> > This will be the first incubator release for MetaModel project in
> > > >> Apache.
> > > >> >
> > > >> > The tag to be voted on is v4.0.0-incubating :
> > > >> >
> > > >> >
> > > >>
> > >
> >
> https://git-wip-us.apache.org/repos/asf?p=incubator-metamodel.git;a=tag;h=refs/tags/MetaModel-4.0.0-incubating
> > > >> >
> > > >> >
> > > >> > Release artifacts are signed with the following key:
> > > >> > https://people.apache.org/keys/committer/ankitkumar2711.asc
> > > >> >
> > > >> > The staging repository for this release can be found at:
> > > >> >
> > > >>
> > >
> >
> https://repository.apache.org/content/repositories/orgapachemetamodel-142
> > > >> >
> > > >> > Please vote on releasing this package as Apache MetaModel
> > > >> 4.0.0-incubating.
> > > >> > The vote is open until < DATE AND TIME FOR THE NEXT 72 hours> and
> > > >> > passes if a majority of at least 3 IPMC votes are cast.
> > > >> >
> > > >> > [ ] +1 Release this package as Apache MetaModel 4.0.0-incubating
> > > >> > [ ] -1 Do not release this package because ...
> > > >> >
> > > >> >
> > > >> > Regards
> > > >> > Ankit
> > > >> >
> > > >>
> > > >
> > > >
> > >
> >
>

Reply via email to