Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
33 additions
and
13 deletions.
There are no files selected for viewing
4 changes: 2 additions & 2 deletions
4
...ndroid/KASS/test/models/AccountTests.java → ...ndroid/KASS/models/test/AccountTests.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
package jieqoo.android.KASS.models.test; | ||
|
||
import java.text.ParseException; | ||
|
||
import jieqoo.android.KASS.models.Listing; | ||
import jieqoo.android.KASS.test.Fixtures; | ||
import junit.framework.TestCase; | ||
|
||
import org.json.JSONException; | ||
import org.json.JSONObject; | ||
|
||
public class ListingTests extends TestCase { | ||
|
||
public final void testCreateFromJSONObject() throws JSONException, ParseException { | ||
JSONObject object = new JSONObject(Fixtures.LISTING); | ||
Listing listing = new Listing(object); | ||
assertEquals(listing.getId(), "4f6053a8cf60210e50000002"); | ||
} | ||
|
||
} |
4 changes: 2 additions & 2 deletions
4
...droid/KASS/test/models/ListingsTests.java → ...droid/KASS/models/test/ListingsTests.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
8 changes: 4 additions & 4 deletions
8
...SS/test/tasks/AccountCreateTaskTests.java → ...SS/tasks/test/AccountCreateTaskTests.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
10 changes: 5 additions & 5 deletions
10
...est/tasks/FetchRESTResponseTaskTests.java → ...asks/test/FetchRESTResponseTaskTests.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters