// -*- Mode: Java; tab-width: 4; indent-tabs-mode: nil; -*-
// vim: et ts=4 sts=4 sw=4 syntax=java
package com.aragaer.jtt.core.test;

import java.util.Calendar;
import java.util.concurrent.TimeUnit;

import com.aragaer.jtt.astronomy.SolarEventCalculator;
import com.aragaer.jtt.core.Interval;


public class TestIntervalCalculator implements SolarEventCalculator {
    static final long MS_PER_DAY = TimeUnit.DAYS.toMillis(1);

    @Override public void setLocation(float latitude, float longitude) {
    }

    @Override public Calendar getSunriseFor(Calendar noon) {
	long millis = noon.getTimeInMillis();
	Calendar result = Calendar.getInstance();
	result.setTimeInMillis(millis - MS_PER_DAY/4);
	return result;
    }

    @Override public Calendar getSunsetFor(Calendar noon) {
	long millis = noon.getTimeInMillis();
	Calendar result = Calendar.getInstance();
	result.setTimeInMillis(millis + MS_PER_DAY/4);
	return result;
    }
}

@@ -555,33 +555,40 @@
 alendar noon) %7B%0A
-%09
+        
 long millis = no
@@ -601,33 +601,40 @@
 TimeInMillis();%0A
-%09
+        
 Calendar result 
@@ -651,33 +651,40 @@
 .getInstance();%0A
-%09
+        
 result.setTimeIn
@@ -706,33 +706,40 @@
  MS_PER_DAY/4);%0A
-%09
+        
 return result;%0A 
@@ -804,17 +804,24 @@
 noon) %7B%0A
-%09
+        
 long mil
@@ -850,17 +850,24 @@
 llis();%0A
-%09
+        
 Calendar
@@ -900,17 +900,24 @@
 ance();%0A
-%09
+        
 result.s
@@ -959,9 +959,16 @@
 4);%0A
-%09
+        
 retu

fix indentation.