// Path: app/src/main/java/com/waynedgrant/cirrus/measures/WindDirection.java
// public class WindDirection {
//     private Integer compassDegrees;
//     private CardinalDirection cardinalDirection;
// 
//     public WindDirection(Integer degrees) {
//         this.compassDegrees = degrees;
//         this.cardinalDirection = CardinalDirection.values()[(int) (((degrees + 11) / 22.5) % 16)];
//     }
// 
//     public Integer getCompassDegrees() {
//         return compassDegrees;
//     }
// 
//     public CardinalDirection getCardinalDirection() {
//         return cardinalDirection;
//     }
// }
// 
// Path: app/src/main/java/com/waynedgrant/cirrus/units/WindDirectionUnit.java
// public enum WindDirectionUnit {
//     CARDINAL_DIRECTION("Cardinal Direction"),
//     COMPASS_DEGREES("Compass Degrees");
// 
//     private String description;
// 
//     WindDirectionUnit(String description) {
//         this.description = description;
//     }
// 
//     public String toString() {
//         return description;
//     }
// }


import com.waynedgrant.cirrus.measures.WindDirection;
import com.waynedgrant.cirrus.units.WindDirectionUnit;
import org.junit.Test;
import static junit.framework.Assert.assertEquals;
package com.waynedgrant.cirrus.presentation.formatters;




public class TestWindDirectionFormatter {
    private WindDirectionFormatter testee;

    @Test
    public void GIVEN_null_wind_direction_WHEN_compass_degrees_formatting_requested_THEN_returns_blank_compass_degrees_value() {
        testee = new WindDirectionFormatter(null);
// Path: app/src/main/java/com/waynedgrant/cirrus/measures/WindDirection.java
// public class WindDirection {
//     private Integer compassDegrees;
//     private CardinalDirection cardinalDirection;
// 
//     public WindDirection(Integer degrees) {
//         this.compassDegrees = degrees;
//         this.cardinalDirection = CardinalDirection.values()[(int) (((degrees + 11) / 22.5) % 16)];
//     }
// 
//     public Integer getCompassDegrees() {
//         return compassDegrees;
//     }
// 
//     public CardinalDirection getCardinalDirection() {
//         return cardinalDirection;
//     }
// }
// 
// Path: app/src/main/java/com/waynedgrant/cirrus/units/WindDirectionUnit.java
// public enum WindDirectionUnit {
//     CARDINAL_DIRECTION("Cardinal Direction"),
//     COMPASS_DEGREES("Compass Degrees");
// 
//     private String description;
// 
//     WindDirectionUnit(String description) {
//         this.description = description;
//     }
// 
//     public String toString() {
//         return description;
//     }
// }


// Path: app/src/test/java/com/waynedgrant/cirrus/presentation/formatters/TestWindDirectionFormatter.java
import com.waynedgrant.cirrus.measures.WindDirection;
import com.waynedgrant.cirrus.units.WindDirectionUnit;
import org.junit.Test;
import static junit.framework.Assert.assertEquals;

package com.waynedgrant.cirrus.presentation.formatters;




public class TestWindDirectionFormatter {
    private WindDirectionFormatter testee;

    @Test
    public void GIVEN_null_wind_direction_WHEN_compass_degrees_formatting_requested_THEN_returns_blank_compass_degrees_value() {
        testee = new WindDirectionFormatter(null);
        assertEquals("---°", testee.format(WindDirectionUnit.COMPASS_DEGREES));