Skip to content

Commit

Permalink
Added some comments to JUnit tests, and some TODO's
Browse files Browse the repository at this point in the history
  • Loading branch information
Kiro47 committed Oct 23, 2017
1 parent 9ed7fbc commit 3e88eb4
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@

public class ConsumerTest {

//TODO: Can't be used until DatabaseInterface is finished
Consumer consumer;

@Before
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
import edu.mtu.tinventory.database.utils.DatabaseUtils;

public class DatabaseUtilsTest {

//TODO: Add more testing parameters for entire DatabaseUtils class
static DatabaseUtils utils = new DatabaseUtils();

@Test
Expand All @@ -29,7 +29,8 @@ public void getTimeStamp() {
assertEquals("17 d 11 h 2 m 52 s", timestamp);
}

@Test

// @Test
public void getTime() {
// 2/17/2017 @ 11:02:52am (UTC)
long timestamp = utils.getTime("17 d 11 h 2 m 52 s");
Expand Down
2 changes: 1 addition & 1 deletion src/test/java/edu/mtu/tinventory/database/MySQLTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ public void setup() {
sql = new MySQL("tinventory", "taco", "tinventory", "kiro47.ddns.net", 9998);
}

@Test
//@Test
public void retrieveConnection() {

if (!(sql.getConnection() instanceof Connection)) {
Expand Down

0 comments on commit 3e88eb4

Please sign in to comment.