-
Notifications
You must be signed in to change notification settings - Fork 1
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
chiara
committed
Mar 28, 2015
1 parent
d853380
commit 8c7d158
Showing
5 changed files
with
61 additions
and
45 deletions.
There are no files selected for viewing
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
12 changes: 10 additions & 2 deletions
12
londonweatherlib/src/test/java/weather/WeatherOracleTest.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,17 +1,25 @@ | ||
package weather; | ||
|
||
import org.junit.Before; | ||
import org.junit.Test; | ||
|
||
import static org.junit.Assert.assertEquals; | ||
import static weather.WeatherOracle.SUN_IS_SHINING; | ||
|
||
/** | ||
* Created by cchiappini on 21/03/2015. | ||
*/ | ||
public class WeatherOracleTest { | ||
|
||
private WeatherOracle weatherOracle; | ||
|
||
@Before | ||
public void setup(){ | ||
weatherOracle = new WeatherOracle(); | ||
} | ||
|
||
@Test | ||
public void testWeatherOracle(){ | ||
WeatherOracle weatherOracle = new WeatherOracle(); | ||
assertEquals(WeatherOracle.SUN_IS_SHINING, weatherOracle.getWeather()); | ||
assertEquals(SUN_IS_SHINING, weatherOracle.getWeather()); | ||
} | ||
} |
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
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 |
---|---|---|
|
@@ -23,6 +23,7 @@ h2 { | |
.size-dimension { | ||
width: 640px; | ||
text-align: left; | ||
font-size: 0.8em; | ||
} | ||
|
||
|