Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Reverse the order of the arguments of assertEquals #3

Open
wants to merge 9 commits into
base: master
Choose a base branch
from
27 changes: 27 additions & 0 deletions android/.classpath
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
<?xml version="1.0" encoding="UTF-8"?>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

please don't include the .classpath file in your commit, it is only for Eclipse

<classpath>
<classpathentry kind="src" output="target/classes" path="src/main/java">
<attributes>
<attribute name="optional" value="true"/>
<attribute name="maven.pomderived" value="true"/>
</attributes>
</classpathentry>
<classpathentry kind="src" output="target/test-classes" path="src/test/java">
<attributes>
<attribute name="optional" value="true"/>
<attribute name="maven.pomderived" value="true"/>
<attribute name="test" value="true"/>
</attributes>
</classpathentry>
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.6">
<attributes>
<attribute name="maven.pomderived" value="true"/>
</attributes>
</classpathentry>
<classpathentry kind="con" path="org.eclipse.m2e.MAVEN2_CLASSPATH_CONTAINER">
<attributes>
<attribute name="maven.pomderived" value="true"/>
</attributes>
</classpathentry>
<classpathentry kind="output" path="target/classes"/>
</classpath>
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@ public void test() {
h.addListener(t);
String number = "997180330";
h.getCandidatesForNumber(number,"extra");
assertEquals(t.dcArray.size(),1);
assertEquals(number, t.dcArray.get(0).address);
assertEquals(1,t.dcArray.size());
assertEquals(t.dcArray.get(0).address,number);

}
@Test
Expand All @@ -38,8 +38,8 @@ public void test1() {
h1.addListener(t1);
String number = "pranav";
h1.getCandidatesForNumber(number,"extra");
assertEquals(t1.dcArray.size(),1);
assertEquals(number, t1.dcArray.get(0).address);
assertEquals(1, t1.dcArray.size());
assertEquals(t1.dcArray.get(0).address, number);

}
@Test
Expand All @@ -49,8 +49,8 @@ public void test2() {
h2.addListener(t2);
String number = "9971pranav";
h2.getCandidatesForNumber(number,"extra");
assertEquals(t2.dcArray.size(),1);
assertEquals(number, t2.dcArray.get(0).address);
assertEquals(1, t2.dcArray.size());
assertEquals(t2.dcArray.get(0).address,number);

}

Expand Down