Skip to content
Snippets Groups Projects
Commit ffdb0f68 authored by LABOUREL Arnaud's avatar LABOUREL Arnaud
Browse files

Typo test

parent 3d60eb4e
Branches
No related tags found
No related merge requests found
Pipeline #5001 passed
...@@ -5,7 +5,7 @@ import static org.junit.jupiter.api.Assertions.*; ...@@ -5,7 +5,7 @@ import static org.junit.jupiter.api.Assertions.*;
import static org.assertj.core.api.AssertionsForClassTypes.assertThat; import static org.assertj.core.api.AssertionsForClassTypes.assertThat;
public class JobTest { public class JobTest {
//TODO : décommenter pour tester la classe Job //TODO : décommenter pour tester la méthode toString de la classe Job
/* /*
@Test @Test
void testToString(){ void testToString(){
...@@ -19,31 +19,6 @@ public class JobTest { ...@@ -19,31 +19,6 @@ public class JobTest {
String expectedStringRepresentation2 = "Job " + job2.getId() + " (10FLOP, 1o)"; String expectedStringRepresentation2 = "Job " + job2.getId() + " (10FLOP, 1o)";
assertThat(job2.toString()).isEqualTo(expectedStringRepresentation2); assertThat(job2.toString()).isEqualTo(expectedStringRepresentation2);
} }
@Test
void testResetJobCount(){
Job.resetJobCount();
Job job = new Job(10, 1000);
assertThat(job.getId()).isEqualTo(0);
}
@Test
void testGetId(){
int[] memories = {10, 1000};
for(int memory : memories){
Job job = new Job(memory, 1000);
assertThat(job.getMemory()).isEqualTo(memory);
}
}
@Test
void testGetJobCount(){
Job.resetJobCount();
for(int jobCount = 1; jobCount < 4; jobCount++){
Job job = new Job(10, 1000);
assertThat(Job.getJobCount()).isEqualTo(jobCount);
}
}
*/ */
} }
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment