Test Double Code

//Test to add:

@Test 
public void checkExternalTemperatureConverted() {
	Converter tc = new Converter();
	assertEquals(32., tc.externalToFahrenheit(),.02); 
	}
 
//Class to add:

public class ExternalTemperatureGetter {
public double getTemperature() {
	Double value = Math.random() * 10.; 
	return value; 
	}
}
 
//Method to add to Converter:   

ExternalTemperatureGetter etc = new ExternalTemperatureGetter();
 
public double externalToFahrenheit() {
	double temp = etc.getTemperature(); 
	return toFahrenheit(temp); 
	}