-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
nueva carpeta data y los test de los datas faltantes
- Loading branch information
Showing
4 changed files
with
98 additions
and
2 deletions.
There are no files selected for viewing
2 changes: 1 addition & 1 deletion
2
...st/java/net/lacnic/AditionalDataTest.java → ...nic/elections/data/AditionalDataTest.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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
package net.lacnic; | ||
package net.lacnic.elections.data; | ||
|
||
import java.util.ArrayList; | ||
import java.util.Date; | ||
|
2 changes: 1 addition & 1 deletion
2
...a/net/lacnic/ElectionResultsDataTest.java → ...ections/data/ElectionResultsDataTest.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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
package net.lacnic; | ||
package net.lacnic.elections.data; | ||
|
||
import java.util.ArrayList; | ||
import java.util.List; | ||
|
47 changes: 47 additions & 0 deletions
47
elections-ejb/src/test/java/net/lacnic/elections/data/TableReportDataStringIdTest.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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
package net.lacnic.elections.data; | ||
|
||
import junit.framework.Test; | ||
import junit.framework.TestCase; | ||
import junit.framework.TestSuite; | ||
|
||
public class TableReportDataStringIdTest extends TestCase { | ||
|
||
public TableReportDataStringIdTest(String testName) { | ||
super(testName); | ||
} | ||
|
||
/** | ||
* @return the suite of tests being tested | ||
*/ | ||
public static Test suite() { | ||
return new TestSuite(TableReportDataStringIdTest.class); | ||
} | ||
|
||
public void testTableReportDataStringId() { | ||
|
||
String id = "Id10", description = "description"; | ||
|
||
TableReportDataStringId tableReportData = new TableReportDataStringId(id, description); | ||
|
||
assertNotNull(tableReportData); | ||
|
||
assertEquals(tableReportData.getId(), id); | ||
assertEquals(tableReportData.getDescription(), description); | ||
} | ||
|
||
public void testTableReportDataStringIdSets() { | ||
|
||
String id = "Id10", description = "description"; | ||
|
||
TableReportDataStringId tableReportData = new TableReportDataStringId(); | ||
|
||
assertNotNull(tableReportData); | ||
|
||
tableReportData.setId(id); | ||
tableReportData.setDescription(description); | ||
|
||
assertEquals(tableReportData.getId(), id); | ||
assertEquals(tableReportData.getDescription(), description); | ||
} | ||
|
||
} |
49 changes: 49 additions & 0 deletions
49
elections-ejb/src/test/java/net/lacnic/elections/data/TablesReportDataLongIdTest.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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
package net.lacnic.elections.data; | ||
|
||
import junit.framework.Test; | ||
import junit.framework.TestCase; | ||
import junit.framework.TestSuite; | ||
|
||
public class TablesReportDataLongIdTest extends TestCase { | ||
|
||
public TablesReportDataLongIdTest(String testName) { | ||
super(testName); | ||
} | ||
|
||
/** | ||
* @return the suite of tests being tested | ||
*/ | ||
public static Test suite() { | ||
return new TestSuite(TablesReportDataLongIdTest.class); | ||
} | ||
|
||
public void testTablesReportDataLongId() { | ||
|
||
long id = 510L; | ||
String description = "description"; | ||
|
||
TablesReportDataLongId tableReportData = new TablesReportDataLongId(id, description); | ||
|
||
assertNotNull(tableReportData); | ||
|
||
assertEquals(tableReportData.getId(), id); | ||
assertEquals(tableReportData.getDescription(), description); | ||
} | ||
|
||
public void testTablesReportDataLongIdSets() { | ||
|
||
long id = 510L; | ||
String description = "description"; | ||
|
||
TablesReportDataLongId tableReportData = new TablesReportDataLongId(); | ||
|
||
assertNotNull(tableReportData); | ||
|
||
tableReportData.setId(id); | ||
tableReportData.setDescription(description); | ||
|
||
assertEquals(tableReportData.getId(), id); | ||
assertEquals(tableReportData.getDescription(), description); | ||
} | ||
|
||
} |