#57 own package for functionalTimer tests
This commit is contained in:
		
							parent
							
								
									2b68373230
								
							
						
					
					
						commit
						b1fd0691f7
					
				
					 5 changed files with 9 additions and 5 deletions
				
			
		|  | @ -1,4 +1,4 @@ | |||
| package be.ugent.sel.studeez | ||||
| package be.ugent.sel.studeez.timer_functional | ||||
| 
 | ||||
| import be.ugent.sel.studeez.data.local.models.timer_functional.FunctionalCustomTimer | ||||
| import be.ugent.sel.studeez.data.local.models.timer_functional.FunctionalTimer | ||||
|  | @ -31,6 +31,7 @@ class FunctionalCustomTimerUnitTest : FunctionalTimerUnitTest() { | |||
|     override fun testEnded() { | ||||
|         timer = FunctionalCustomTimer(0) | ||||
|         timer.tick() | ||||
|         Assert.assertTrue(timer.hasEnded()) | ||||
|         Assert.assertEquals( | ||||
|             FunctionalTimer.DONE, | ||||
|             timer.view | ||||
|  | @ -1,4 +1,4 @@ | |||
| package be.ugent.sel.studeez | ||||
| package be.ugent.sel.studeez.timer_functional | ||||
| 
 | ||||
| import be.ugent.sel.studeez.data.local.models.timer_functional.FunctionalEndlessTimer | ||||
| import be.ugent.sel.studeez.data.local.models.timer_functional.FunctionalTimer | ||||
|  | @ -32,6 +32,7 @@ class FunctionalEndlessTimerUnitTest : FunctionalTimerUnitTest() { | |||
|         val n = 1000 | ||||
|         for (i in 1..n) { | ||||
|             timer.tick() | ||||
|             Assert.assertFalse(timer.hasEnded()) | ||||
|             Assert.assertEquals( | ||||
|                 FunctionalTimer.FOCUS, | ||||
|                 timer.view | ||||
|  | @ -1,4 +1,4 @@ | |||
| package be.ugent.sel.studeez | ||||
| package be.ugent.sel.studeez.timer_functional | ||||
| 
 | ||||
| import be.ugent.sel.studeez.data.local.models.timer_functional.FunctionalTimer | ||||
| import org.junit.Before | ||||
|  | @ -1,4 +1,4 @@ | |||
| package be.ugent.sel.studeez | ||||
| package be.ugent.sel.studeez.timer_functional | ||||
| 
 | ||||
| import be.ugent.sel.studeez.data.local.models.timer_functional.FunctionalPomodoroTimer | ||||
| import be.ugent.sel.studeez.data.local.models.timer_functional.FunctionalTimer | ||||
|  | @ -48,6 +48,7 @@ class FuntionalPomodoroTimerUnitTest : FunctionalTimerUnitTest() { | |||
|     override fun testEnded() { | ||||
|         pomodoroTimer = FunctionalPomodoroTimer(0, 0, 0) | ||||
|         pomodoroTimer.tick() | ||||
|         Assert.assertTrue(pomodoroTimer.hasEnded()) | ||||
|         Assert.assertEquals( | ||||
|             FunctionalTimer.DONE, | ||||
|             pomodoroTimer.view, | ||||
|  | @ -59,6 +60,7 @@ class FuntionalPomodoroTimerUnitTest : FunctionalTimerUnitTest() { | |||
|         for (i in 0..10) { | ||||
|             pomodoroTimer.tick() | ||||
|         } | ||||
|         Assert.assertFalse(pomodoroTimer.hasEnded()) | ||||
|         Assert.assertTrue(pomodoroTimer.isInBreak) | ||||
|         Assert.assertEquals( | ||||
|             FunctionalTimer.BREAK, | ||||
|  | @ -1,4 +1,4 @@ | |||
| package be.ugent.sel.studeez | ||||
| package be.ugent.sel.studeez.timer_functional | ||||
| 
 | ||||
| import be.ugent.sel.studeez.data.local.models.timer_functional.HoursMinutesSeconds | ||||
| import be.ugent.sel.studeez.data.local.models.timer_functional.Time | ||||
		Reference in a new issue
	
	 reyniersbram
						reyniersbram