Repository: incubator-rya
Updated Branches:
  refs/heads/develop 1a3839607 -> 39c394290


RYA-44 testMilliSecondsNoZone test case fails when running from +0530 time zone


Project: http://git-wip-us.apache.org/repos/asf/incubator-rya/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-rya/commit/39c39429
Tree: http://git-wip-us.apache.org/repos/asf/incubator-rya/tree/39c39429
Diff: http://git-wip-us.apache.org/repos/asf/incubator-rya/diff/39c39429

Branch: refs/heads/develop
Commit: 39c39429019937284d2e100ce0cffd214ea726e3
Parents: 1a38396
Author: AmilaWijayarathna <[email protected]>
Authored: Wed Mar 2 20:14:47 2016 +0530
Committer: AmilaWijayarathna <[email protected]>
Committed: Wed Mar 2 20:14:47 2016 +0530

----------------------------------------------------------------------
 .../mvm/rya/api/resolver/impl/DateTimeRyaTypeResolverTest.java     | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-rya/blob/39c39429/common/rya.api/src/test/java/mvm/rya/api/resolver/impl/DateTimeRyaTypeResolverTest.java
----------------------------------------------------------------------
diff --git 
a/common/rya.api/src/test/java/mvm/rya/api/resolver/impl/DateTimeRyaTypeResolverTest.java
 
b/common/rya.api/src/test/java/mvm/rya/api/resolver/impl/DateTimeRyaTypeResolverTest.java
index 7dfa8ea..899bbcf 100644
--- 
a/common/rya.api/src/test/java/mvm/rya/api/resolver/impl/DateTimeRyaTypeResolverTest.java
+++ 
b/common/rya.api/src/test/java/mvm/rya/api/resolver/impl/DateTimeRyaTypeResolverTest.java
@@ -110,7 +110,7 @@ public class DateTimeRyaTypeResolverTest {
     @Test
        public void testMilliSecondsNoZone() throws Exception {
        String beforeDate="2002-02-02T02:02:02.222";
-       String afterDate="2002-02-02T\\d\\d:\\d\\d:02\\.222.*";
+       String afterDate="2002-02-0(1|2|3)T\\d\\d:\\d\\d:02\\.222.*";
                RyaType deserialize = serializeAndDeserialize(beforeDate, 
XMLSchema.DATETIME);
            final String afterActual = deserialize.getData();
                assertTrue("Before='"+beforeDate+"'; Expected should match 
actual regex after='"+afterDate+"' deserialized:"+afterActual, 
afterActual.matches(afterDate));

Reply via email to