<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;"><div id="bloop_customfont" style="font-family:Helvetica,Arial;font-size:13px; color: rgba(0,0,0,1.0); margin: 0px; line-height: auto;">I'm not sure if this is the best solution but agreed with workaround for now.</div><div id="bloop_customfont" style="font-family:Helvetica,Arial;font-size:13px; color: rgba(0,0,0,1.0); margin: 0px; line-height: auto;"><br></div> <div id="bloop_sign_1386004130805111040"><span style="font-family:helvetica,arial;font-size:13px"></span>--&nbsp;<br>Daniel Passos<br><br></div> <br><p style="color:#A0A0A8;">On November 22, 2013 at 3:41:23 PM, Tadeas Kriz (<a href="mailto://tkriz@redhat.com">tkriz@redhat.com</a>) wrote:</p> <blockquote type="cite" class="clean_bq"><span><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;"><div>




<title></title>



<div>Hey,</div>
<div><br></div>
<div>I’ve been investigating the issue with SQLStore testing
through Robolectric and this is what I’ve found.</div>
<div><br></div>
<div>Those tests run correctly on linux with both Java 1.6 and Java
1.7 and also works on Mac OS X with Java 1.6. This unfortunately
doesn’t apply for the Java 1.7 on Mac and the test is failing. And
because I think that this test should definitely not be @Ignore-d
all the time, I’ve come up with following solution.</div>
<div><br></div>
<div>In JUnit, there’s a way to decide whether to run a test or not
in runtime, based on org.junit.Assume. This way, we could easily
ignore the SQLStoreTest when running on Mac OS X with Java 1.7, but
leave it on other platforms. I’ve already taken the liberty to
write this down and I’ve bundled it into the PR [1] which is fixing
the doubly-called Callback#onSuccess bug (AGDROID-150).</div>
<div><br></div>
<div>What do you guys think about this solution, or should I say
workaround? Of course it’s not perfect, it would be cool if we
could run even the SQLStoreTest on all platforms without any
difference, but right now it seems to be a incompatibility of
SQLite with Mac’s Java 1.7.</div>
<div><br></div>
1 -&nbsp;<a href="https://github.com/aerogear/aerogear-android/pull/120">https://github.com/aerogear/aerogear-android/pull/120</a>
<div><br>
<div>
<div>—</div>
<div>Tadeas Kriz</div>
<div><a href="mailto:tkriz@redhat.com">tkriz@redhat.com</a></div>
</div>
<br></div>


_______________________________________________
<br>aerogear-dev mailing list
<br>aerogear-dev@lists.jboss.org
<br>https://lists.jboss.org/mailman/listinfo/aerogear-dev</div></div></span></blockquote></body></html>