Skip to content

Instantly share code, notes, and snippets.

@Yitzchok
Created April 9, 2010 06:21
Show Gist options
  • Save Yitzchok/360934 to your computer and use it in GitHub Desktop.
Save Yitzchok/360934 to your computer and use it in GitHub Desktop.
import org.junit.*;
import java.util.Calendar;
import java.util.Date;
import java.util.GregorianCalendar;
import java.util.TimeZone;
import net.sourceforge.zmanim.*;
import net.sourceforge.zmanim.util.*;
public class ZmanimTest{
private ComplexZmanimCalendar calendar;
@Before
public void Setup() {
String locationName = "Lakewood, NJ";
double latitude = 40.09596; //Lakewood, NJ
double longitude = -74.22213; //Lakewood, NJ
double elevation = 0; //optional elevation
TimeZone timeZone = TimeZone.getTimeZone("America/New_York");
GeoLocation location = new GeoLocation(locationName, latitude, longitude, elevation, timeZone);
ComplexZmanimCalendar czc = new ComplexZmanimCalendar(location);
czc.setCalendar(new GregorianCalendar(2010, 3, 2));
calendar = czc;
}
@Test
public void Check_getPlagHamincha120MinutesZmanis(){
Date zman = calendar.getPlagHamincha120MinutesZmanis();
Assert.assertEquals(new GregorianCalendar(2010, 3, 2, 19, 43, 14).getTime().toString(), zman.toString());
}
@Test
public void Check_getPlagHamincha120Minutes(){
Date zman = calendar.getPlagHamincha120Minutes();
Assert.assertEquals(new GregorianCalendar(2010, 3, 2, 19, 37, 38).getTime().toString(), zman.toString());
}
@Test
public void Check_getAlos60(){
Date zman = calendar.getAlos60();
Assert.assertEquals(new GregorianCalendar(2010, 3, 2, 5, 39, 41).getTime().toString(), zman.toString());
}
@Test
public void Check_getAlos72Zmanis(){
Date zman = calendar.getAlos72Zmanis();
Assert.assertEquals(new GregorianCalendar(2010, 3, 2, 5, 23, 27).getTime().toString(), zman.toString());
}
@Test
public void Check_getAlos96(){
Date zman = calendar.getAlos96();
Assert.assertEquals(new GregorianCalendar(2010, 3, 2, 5, 3, 41).getTime().toString(), zman.toString());
}
@Test
public void Check_getAlos90Zmanis(){
Date zman = calendar.getAlos90Zmanis();
Assert.assertEquals(new GregorianCalendar(2010, 3, 2, 5, 4, 24).getTime().toString(), zman.toString());
}
@Test
public void Check_getAlos96Zmanis(){
Date zman = calendar.getAlos96Zmanis();
Assert.assertEquals(new GregorianCalendar(2010, 3, 2, 4, 58, 2).getTime().toString(), zman.toString());
}
@Test
public void Check_getAlos90(){
Date zman = calendar.getAlos90();
Assert.assertEquals(new GregorianCalendar(2010, 3, 2, 5, 9, 41).getTime().toString(), zman.toString());
}
@Test
public void Check_getAlos120(){
Date zman = calendar.getAlos120();
Assert.assertEquals(new GregorianCalendar(2010, 3, 2, 4, 39, 41).getTime().toString(), zman.toString());
}
@Test
public void Check_getAlos120Zmanis(){
Date zman = calendar.getAlos120Zmanis();
Assert.assertEquals(new GregorianCalendar(2010, 3, 2, 4, 32, 38).getTime().toString(), zman.toString());
}
@Test
public void Check_getAlos26Degrees(){
Date zman = calendar.getAlos26Degrees();
Assert.assertEquals(new GregorianCalendar(2010, 3, 2, 4, 19, 16).getTime().toString(), zman.toString());
}
@Test
public void Check_getAlos18Degrees(){
Date zman = calendar.getAlos18Degrees();
Assert.assertEquals(new GregorianCalendar(2010, 3, 2, 5, 6, 31).getTime().toString(), zman.toString());
}
@Test
public void Check_getAlos19Point8Degrees(){
Date zman = calendar.getAlos19Point8Degrees();
Assert.assertEquals(new GregorianCalendar(2010, 3, 2, 4, 56, 13).getTime().toString(), zman.toString());
}
@Test
public void Check_getAlos16Point1Degrees(){
Date zman = calendar.getAlos16Point1Degrees();
Assert.assertEquals(new GregorianCalendar(2010, 3, 2, 5, 17, 14).getTime().toString(), zman.toString());
}
@Test
public void Check_getMisheyakir11Point5Degrees(){
Date zman = calendar.getMisheyakir11Point5Degrees();
Assert.assertEquals(new GregorianCalendar(2010, 3, 2, 5, 42, 39).getTime().toString(), zman.toString());
}
@Test
public void Check_getMisheyakir11Degrees(){
Date zman = calendar.getMisheyakir11Degrees();
Assert.assertEquals(new GregorianCalendar(2010, 3, 2, 5, 45, 22).getTime().toString(), zman.toString());
}
@Test
public void Check_getMisheyakir10Point2Degrees(){
Date zman = calendar.getMisheyakir10Point2Degrees();
Assert.assertEquals(new GregorianCalendar(2010, 3, 2, 5, 49, 43).getTime().toString(), zman.toString());
}
@Test
public void Check_getSofZmanShmaMGA19Point8Degrees(){
Date zman = calendar.getSofZmanShmaMGA19Point8Degrees();
Assert.assertEquals(new GregorianCalendar(2010, 3, 2, 8, 58, 35).getTime().toString(), zman.toString());
}
@Test
public void Check_getSofZmanShmaMGA16Point1Degrees(){
Date zman = calendar.getSofZmanShmaMGA16Point1Degrees();
Assert.assertEquals(new GregorianCalendar(2010, 3, 2, 9, 9, 5).getTime().toString(), zman.toString());
}
@Test
public void Check_getSofZmanShmaMGA72Minutes(){
Date zman = calendar.getSofZmanShmaMGA72Minutes();
Assert.assertEquals(new GregorianCalendar(2010, 3, 2, 9, 14, 17).getTime().toString(), zman.toString());
}
@Test
public void Check_getSofZmanShmaMGA72MinutesZmanis(){
Date zman = calendar.getSofZmanShmaMGA72MinutesZmanis();
Assert.assertEquals(new GregorianCalendar(2010, 3, 2, 9, 12, 10).getTime().toString(), zman.toString());
}
@Test
public void Check_getSofZmanShmaMGA90Minutes(){
Date zman = calendar.getSofZmanShmaMGA90Minutes();
Assert.assertEquals(new GregorianCalendar(2010, 3, 2, 9, 5, 17).getTime().toString(), zman.toString());
}
@Test
public void Check_getSofZmanShmaMGA90MinutesZmanis(){
Date zman = calendar.getSofZmanShmaMGA90MinutesZmanis();
Assert.assertEquals(new GregorianCalendar(2010, 3, 2, 9, 2, 38).getTime().toString(), zman.toString());
}
@Test
public void Check_getSofZmanShmaMGA96Minutes(){
Date zman = calendar.getSofZmanShmaMGA96Minutes();
Assert.assertEquals(new GregorianCalendar(2010, 3, 2, 9, 2, 17).getTime().toString(), zman.toString());
}
@Test
public void Check_getSofZmanShmaMGA96MinutesZmanis(){
Date zman = calendar.getSofZmanShmaMGA96MinutesZmanis();
Assert.assertEquals(new GregorianCalendar(2010, 3, 2, 8, 59, 27).getTime().toString(), zman.toString());
}
@Test
public void Check_getSofZmanShma3HoursBeforeChatzos(){
Date zman = calendar.getSofZmanShma3HoursBeforeChatzos();
Assert.assertEquals(new GregorianCalendar(2010, 3, 2, 10, 0, 52).getTime().toString(), zman.toString());
}
@Test
public void Check_getSofZmanShmaMGA120Minutes(){
Date zman = calendar.getSofZmanShmaMGA120Minutes();
Assert.assertEquals(new GregorianCalendar(2010, 3, 2, 8, 50, 17).getTime().toString(), zman.toString());
}
@Test
public void Check_getSofZmanShmaAlos16Point1ToSunset(){
Date zman = calendar.getSofZmanShmaAlos16Point1ToSunset();
Assert.assertEquals(new GregorianCalendar(2010, 3, 2, 8, 48, 26).getTime().toString(), zman.toString());
}
@Test
public void Check_getSofZmanShmaAlos16Point1ToTzaisGeonim7Point083Degrees(){
Date zman = calendar.getSofZmanShmaAlos16Point1ToTzaisGeonim7Point083Degrees();
Assert.assertEquals(new GregorianCalendar(2010, 3, 2, 8, 56, 38).getTime().toString(), zman.toString());
}
@Test
public void Check_getSofZmanShmaKolEliyahu(){
Date zman = calendar.getSofZmanShmaKolEliyahu();
Assert.assertEquals(new GregorianCalendar(2010, 3, 2, 9, 48, 17).getTime().toString(), zman.toString());
}
@Test
public void Check_getSofZmanTfilaMGA19Point8Degrees(){
Date zman = calendar.getSofZmanTfilaMGA19Point8Degrees();
Assert.assertEquals(new GregorianCalendar(2010, 3, 2, 10, 19, 22).getTime().toString(), zman.toString());
}
@Test
public void Check_getSofZmanTfilaMGA16Point1Degrees(){
Date zman = calendar.getSofZmanTfilaMGA16Point1Degrees();
Assert.assertEquals(new GregorianCalendar(2010, 3, 2, 10, 26, 21).getTime().toString(), zman.toString());
}
@Test
public void Check_getSofZmanTfilaMGA72Minutes(){
Date zman = calendar.getSofZmanTfilaMGA72Minutes();
Assert.assertEquals(new GregorianCalendar(2010, 3, 2, 10, 29, 49).getTime().toString(), zman.toString());
}
@Test
public void Check_getSofZmanTfilaMGA72MinutesZmanis(){
Date zman = calendar.getSofZmanTfilaMGA72MinutesZmanis();
Assert.assertEquals(new GregorianCalendar(2010, 3, 2, 10, 28, 24).getTime().toString(), zman.toString());
}
@Test
public void Check_getSofZmanTfilaMGA90Minutes(){
Date zman = calendar.getSofZmanTfilaMGA90Minutes();
Assert.assertEquals(new GregorianCalendar(2010, 3, 2, 10, 23, 49).getTime().toString(), zman.toString());
}
@Test
public void Check_getSofZmanTfilaMGA90MinutesZmanis(){
Date zman = calendar.getSofZmanTfilaMGA90MinutesZmanis();
Assert.assertEquals(new GregorianCalendar(2010, 3, 2, 10, 22, 3).getTime().toString(), zman.toString());
}
@Test
public void Check_getSofZmanTfilaMGA96Minutes(){
Date zman = calendar.getSofZmanTfilaMGA96Minutes();
Assert.assertEquals(new GregorianCalendar(2010, 3, 2, 10, 21, 49).getTime().toString(), zman.toString());
}
@Test
public void Check_getSofZmanTfilaMGA96MinutesZmanis(){
Date zman = calendar.getSofZmanTfilaMGA96MinutesZmanis();
Assert.assertEquals(new GregorianCalendar(2010, 3, 2, 10, 19, 56).getTime().toString(), zman.toString());
}
@Test
public void Check_getSofZmanTfilaMGA120Minutes(){
Date zman = calendar.getSofZmanTfilaMGA120Minutes();
Assert.assertEquals(new GregorianCalendar(2010, 3, 2, 10, 13, 49).getTime().toString(), zman.toString());
}
@Test
public void Check_getSofZmanTfila2HoursBeforeChatzos(){
Date zman = calendar.getSofZmanTfila2HoursBeforeChatzos();
Assert.assertEquals(new GregorianCalendar(2010, 3, 2, 11, 0, 52).getTime().toString(), zman.toString());
}
@Test
public void Check_getMinchaGedola30Minutes(){
Date zman = calendar.getMinchaGedola30Minutes();
Assert.assertEquals(new GregorianCalendar(2010, 3, 2, 13, 30, 52).getTime().toString(), zman.toString());
}
@Test
public void Check_getMinchaGedola72Minutes(){
Date zman = calendar.getMinchaGedola72Minutes();
Assert.assertEquals(new GregorianCalendar(2010, 3, 2, 13, 38, 38).getTime().toString(), zman.toString());
}
@Test
public void Check_getMinchaGedola16Point1Degrees(){
Date zman = calendar.getMinchaGedola16Point1Degrees();
Assert.assertEquals(new GregorianCalendar(2010, 3, 2, 13, 39, 34).getTime().toString(), zman.toString());
}
@Test
public void Check_getMinchaGedolaGreaterThan30(){
Date zman = calendar.getMinchaGedolaGreaterThan30();
Assert.assertEquals(new GregorianCalendar(2010, 3, 2, 13, 32, 38).getTime().toString(), zman.toString());
}
@Test
public void Check_getMinchaKetana16Point1Degrees(){
Date zman = calendar.getMinchaKetana16Point1Degrees();
Assert.assertEquals(new GregorianCalendar(2010, 3, 2, 17, 31, 24).getTime().toString(), zman.toString());
}
@Test
public void Check_getMinchaKetana72Minutes(){
Date zman = calendar.getMinchaKetana72Minutes();
Assert.assertEquals(new GregorianCalendar(2010, 3, 2, 17, 25, 14).getTime().toString(), zman.toString());
}
@Test
public void Check_getPlagHamincha60Minutes(){
Date zman = calendar.getPlagHamincha60Minutes();
Assert.assertEquals(new GregorianCalendar(2010, 3, 2, 18, 50, 8).getTime().toString(), zman.toString());
}
@Test
public void Check_getPlagHamincha72Minutes(){
Date zman = calendar.getPlagHamincha72Minutes();
Assert.assertEquals(new GregorianCalendar(2010, 3, 2, 18, 59, 38).getTime().toString(), zman.toString());
}
@Test
public void Check_getPlagHamincha90Minutes(){
Date zman = calendar.getPlagHamincha90Minutes();
Assert.assertEquals(new GregorianCalendar(2010, 3, 2, 19, 13, 53).getTime().toString(), zman.toString());
}
@Test
public void Check_getPlagHamincha96Minutes(){
Date zman = calendar.getPlagHamincha96Minutes();
Assert.assertEquals(new GregorianCalendar(2010, 3, 2, 19, 18, 38).getTime().toString(), zman.toString());
}
@Test
public void Check_getPlagHamincha96MinutesZmanis(){
Date zman = calendar.getPlagHamincha96MinutesZmanis();
Assert.assertEquals(new GregorianCalendar(2010, 3, 2, 19, 23, 7).getTime().toString(), zman.toString());
}
@Test
public void Check_getPlagHamincha90MinutesZmanis(){
Date zman = calendar.getPlagHamincha90MinutesZmanis();
Assert.assertEquals(new GregorianCalendar(2010, 3, 2, 19, 18, 5).getTime().toString(), zman.toString());
}
@Test
public void Check_getPlagHamincha72MinutesZmanis(){
Date zman = calendar.getPlagHamincha72MinutesZmanis();
Assert.assertEquals(new GregorianCalendar(2010, 3, 2, 19, 3, 0).getTime().toString(), zman.toString());
}
@Test
public void Check_getPlagHamincha16Point1Degrees(){
Date zman = calendar.getPlagHamincha16Point1Degrees();
Assert.assertEquals(new GregorianCalendar(2010, 3, 2, 19, 8, 0).getTime().toString(), zman.toString());
}
@Test
public void Check_getPlagHamincha19Point8Degrees(){
Date zman = calendar.getPlagHamincha19Point8Degrees();
Assert.assertEquals(new GregorianCalendar(2010, 3, 2, 19, 24, 41).getTime().toString(), zman.toString());
}
@Test
public void Check_getPlagHamincha26Degrees(){
Date zman = calendar.getPlagHamincha26Degrees();
Assert.assertEquals(new GregorianCalendar(2010, 3, 2, 19, 54, 2).getTime().toString(), zman.toString());
}
@Test
public void Check_getPlagHamincha18Degrees(){
Date zman = calendar.getPlagHamincha18Degrees();
Assert.assertEquals(new GregorianCalendar(2010, 3, 2, 19, 16, 30).getTime().toString(), zman.toString());
}
@Test
public void Check_getPlagAlosToSunset(){
Date zman = calendar.getPlagAlosToSunset();
Assert.assertEquals(new GregorianCalendar(2010, 3, 2, 17, 54, 3).getTime().toString(), zman.toString());
}
@Test
public void Check_getPlagAlos16Point1ToTzaisGeonim7Point083Degrees(){
Date zman = calendar.getPlagAlos16Point1ToTzaisGeonim7Point083Degrees();
Assert.assertEquals(new GregorianCalendar(2010, 3, 2, 18, 23, 24).getTime().toString(), zman.toString());
}
@Test
public void Check_getBainHasmashosRT13Degrees(){
Date zman = calendar.getBainHasmashosRT13Degrees();
Assert.assertEquals(new GregorianCalendar(2010, 3, 2, 20, 27, 23).getTime().toString(), zman.toString());
}
@Test
public void Check_getBainHasmashosRT58Point5Minutes(){
Date zman = calendar.getBainHasmashosRT58Point5Minutes();
Assert.assertEquals(new GregorianCalendar(2010, 3, 2, 20, 20, 33).getTime().toString(), zman.toString());
}
@Test
public void Check_getBainHasmashosRT13Point5MinutesBefore7Point083Degrees(){
Date zman = calendar.getBainHasmashosRT13Point5MinutesBefore7Point083Degrees();
Assert.assertEquals(new GregorianCalendar(2010, 3, 2, 19, 41, 19).getTime().toString(), zman.toString());
}
@Test
public void Check_getBainHasmashosRT2Stars(){
Date zman = calendar.getBainHasmashosRT2Stars();
Assert.assertEquals(new GregorianCalendar(2010, 3, 2, 19, 50, 48).getTime().toString(), zman.toString());
}
@Test
public void Check_getTzaisGeonim5Point95Degrees(){
Date zman = calendar.getTzaisGeonim5Point95Degrees();
Assert.assertEquals(new GregorianCalendar(2010, 3, 2, 19, 49, 12).getTime().toString(), zman.toString());
}
@Test
public void Check_getTzaisGeonim3Point65Degrees(){
Date zman = calendar.getTzaisGeonim3Point65Degrees();
Assert.assertEquals(new GregorianCalendar(2010, 3, 2, 19, 36, 57).getTime().toString(), zman.toString());
}
@Test
public void Check_getTzaisGeonim4Point61Degrees(){
Date zman = calendar.getTzaisGeonim4Point61Degrees();
Assert.assertEquals(new GregorianCalendar(2010, 3, 2, 19, 42, 3).getTime().toString(), zman.toString());
}
@Test
public void Check_getTzaisGeonim4Point37Degrees(){
Date zman = calendar.getTzaisGeonim4Point37Degrees();
Assert.assertEquals(new GregorianCalendar(2010, 3, 2, 19, 40, 46).getTime().toString(), zman.toString());
}
@Test
public void Check_getTzaisGeonim5Point88Degrees(){
Date zman = calendar.getTzaisGeonim5Point88Degrees();
Assert.assertEquals(new GregorianCalendar(2010, 3, 2, 19, 48, 49).getTime().toString(), zman.toString());
}
@Test
public void Check_getTzaisGeonim4Point8Degrees(){
Date zman = calendar.getTzaisGeonim4Point8Degrees();
Assert.assertEquals(new GregorianCalendar(2010, 3, 2, 19, 43, 4).getTime().toString(), zman.toString());
}
@Test
public void Check_getTzaisGeonim7Point083Degrees(){
Date zman = calendar.getTzaisGeonim7Point083Degrees();
Assert.assertEquals(new GregorianCalendar(2010, 3, 2, 19, 54, 49).getTime().toString(), zman.toString());
}
@Test
public void Check_getTzaisGeonim8Point5Degrees(){
Date zman = calendar.getTzaisGeonim8Point5Degrees();
Assert.assertEquals(new GregorianCalendar(2010, 3, 2, 20, 2, 52).getTime().toString(), zman.toString());
}
@Test
public void Check_getTzais60(){
Date zman = calendar.getTzais60();
Assert.assertEquals(new GregorianCalendar(2010, 3, 2, 20, 22, 3).getTime().toString(), zman.toString());
}
@Test
public void Check_getTzaisAteretTorah(){
Date zman = calendar.getTzaisAteretTorah();
Assert.assertEquals(new GregorianCalendar(2010, 3, 2, 20, 2, 3).getTime().toString(), zman.toString());
}
@Test
public void Check_getSofZmanShmaAteretTorah(){
Date zman = calendar.getSofZmanShmaAteretTorah();
Assert.assertEquals(new GregorianCalendar(2010, 3, 2, 9, 3, 6).getTime().toString(), zman.toString());
}
@Test
public void Check_getSofZmanTfilahAteretTorah(){
Date zman = calendar.getSofZmanTfilahAteretTorah();
Assert.assertEquals(new GregorianCalendar(2010, 3, 2, 10, 16, 19).getTime().toString(), zman.toString());
}
@Test
public void Check_getMinchaGedolaAteretTorah(){
Date zman = calendar.getMinchaGedolaAteretTorah();
Assert.assertEquals(new GregorianCalendar(2010, 3, 2, 13, 19, 22).getTime().toString(), zman.toString());
}
@Test
public void Check_getMinchaKetanaAteretTorah(){
Date zman = calendar.getMinchaKetanaAteretTorah();
Assert.assertEquals(new GregorianCalendar(2010, 3, 2, 16, 59, 1).getTime().toString(), zman.toString());
}
@Test
public void Check_getPlagHaminchaAteretTorah(){
Date zman = calendar.getPlagHaminchaAteretTorah();
Assert.assertEquals(new GregorianCalendar(2010, 3, 2, 18, 30, 32).getTime().toString(), zman.toString());
}
@Test
public void Check_getTzais72Zmanis(){
Date zman = calendar.getTzais72Zmanis();
Assert.assertEquals(new GregorianCalendar(2010, 3, 2, 20, 38, 17).getTime().toString(), zman.toString());
}
@Test
public void Check_getTzais90Zmanis(){
Date zman = calendar.getTzais90Zmanis();
Assert.assertEquals(new GregorianCalendar(2010, 3, 2, 20, 57, 21).getTime().toString(), zman.toString());
}
@Test
public void Check_getTzais96Zmanis(){
Date zman = calendar.getTzais96Zmanis();
Assert.assertEquals(new GregorianCalendar(2010, 3, 2, 21, 3, 42).getTime().toString(), zman.toString());
}
@Test
public void Check_getTzais90(){
Date zman = calendar.getTzais90();
Assert.assertEquals(new GregorianCalendar(2010, 3, 2, 20, 52, 3).getTime().toString(), zman.toString());
}
@Test
public void Check_getTzais120(){
Date zman = calendar.getTzais120();
Assert.assertEquals(new GregorianCalendar(2010, 3, 2, 21, 22, 3).getTime().toString(), zman.toString());
}
@Test
public void Check_getTzais120Zmanis(){
Date zman = calendar.getTzais120Zmanis();
Assert.assertEquals(new GregorianCalendar(2010, 3, 2, 21, 29, 7).getTime().toString(), zman.toString());
}
@Test
public void Check_getTzais16Point1Degrees(){
Date zman = calendar.getTzais16Point1Degrees();
Assert.assertEquals(new GregorianCalendar(2010, 3, 2, 20, 44, 36).getTime().toString(), zman.toString());
}
@Test
public void Check_getTzais26Degrees(){
Date zman = calendar.getTzais26Degrees();
Assert.assertEquals(new GregorianCalendar(2010, 3, 2, 21, 42, 43).getTime().toString(), zman.toString());
}
@Test
public void Check_getTzais18Degrees(){
Date zman = calendar.getTzais18Degrees();
Assert.assertEquals(new GregorianCalendar(2010, 3, 2, 20, 55, 21).getTime().toString(), zman.toString());
}
@Test
public void Check_getTzais19Point8Degrees(){
Date zman = calendar.getTzais19Point8Degrees();
Assert.assertEquals(new GregorianCalendar(2010, 3, 2, 21, 5, 40).getTime().toString(), zman.toString());
}
@Test
public void Check_getTzais96(){
Date zman = calendar.getTzais96();
Assert.assertEquals(new GregorianCalendar(2010, 3, 2, 20, 58, 3).getTime().toString(), zman.toString());
}
@Test
public void Check_getFixedLocalChatzos(){
Date zman = calendar.getFixedLocalChatzos();
Assert.assertEquals(new GregorianCalendar(2010, 3, 2, 12, 56, 53).getTime().toString(), zman.toString());
}
@Test
public void Check_getSofZmanShmaFixedLocal(){
Date zman = calendar.getSofZmanShmaFixedLocal();
Assert.assertEquals(new GregorianCalendar(2010, 3, 2, 9, 56, 53).getTime().toString(), zman.toString());
}
@Test
public void Check_getSofZmanTfilaFixedLocal(){
Date zman = calendar.getSofZmanTfilaFixedLocal();
Assert.assertEquals(new GregorianCalendar(2010, 3, 2, 10, 56, 53).getTime().toString(), zman.toString());
}
@Test
public void Check_getTzais(){
Date zman = calendar.getTzais();
Assert.assertEquals(new GregorianCalendar(2010, 3, 2, 20, 2, 52).getTime().toString(), zman.toString());
}
@Test
public void Check_getAlosHashachar(){
Date zman = calendar.getAlosHashachar();
Assert.assertEquals(new GregorianCalendar(2010, 3, 2, 5, 17, 14).getTime().toString(), zman.toString());
}
@Test
public void Check_getAlos72(){
Date zman = calendar.getAlos72();
Assert.assertEquals(new GregorianCalendar(2010, 3, 2, 5, 27, 41).getTime().toString(), zman.toString());
}
@Test
public void Check_getChatzos(){
Date zman = calendar.getChatzos();
Assert.assertEquals(new GregorianCalendar(2010, 3, 2, 13, 0, 52).getTime().toString(), zman.toString());
}
@Test
public void Check_getSolarMidnight(){
Date zman = calendar.getSolarMidnight();
Assert.assertEquals(new GregorianCalendar(2010, 3, 3, 1, 0, 4).getTime().toString(), zman.toString());
}
@Test
public void Check_getSofZmanShmaGRA(){
Date zman = calendar.getSofZmanShmaGRA();
Assert.assertEquals(new GregorianCalendar(2010, 3, 2, 9, 50, 17).getTime().toString(), zman.toString());
}
@Test
public void Check_getSofZmanShmaMGA(){
Date zman = calendar.getSofZmanShmaMGA();
Assert.assertEquals(new GregorianCalendar(2010, 3, 2, 9, 14, 17).getTime().toString(), zman.toString());
}
@Test
public void Check_getTzais72(){
Date zman = calendar.getTzais72();
Assert.assertEquals(new GregorianCalendar(2010, 3, 2, 20, 34, 3).getTime().toString(), zman.toString());
}
@Test
public void Check_getCandelLighting(){
Date zman = calendar.getCandelLighting();
Assert.assertEquals(new GregorianCalendar(2010, 3, 2, 19, 4, 3).getTime().toString(), zman.toString());
}
@Test
public void Check_getSofZmanTfilaGRA(){
Date zman = calendar.getSofZmanTfilaGRA();
Assert.assertEquals(new GregorianCalendar(2010, 3, 2, 10, 53, 49).getTime().toString(), zman.toString());
}
@Test
public void Check_getSofZmanTfilaMGA(){
Date zman = calendar.getSofZmanTfilaMGA();
Assert.assertEquals(new GregorianCalendar(2010, 3, 2, 10, 29, 49).getTime().toString(), zman.toString());
}
@Test
public void Check_getMinchaGedola(){
Date zman = calendar.getMinchaGedola();
Assert.assertEquals(new GregorianCalendar(2010, 3, 2, 13, 32, 38).getTime().toString(), zman.toString());
}
@Test
public void Check_getMinchaKetana(){
Date zman = calendar.getMinchaKetana();
Assert.assertEquals(new GregorianCalendar(2010, 3, 2, 16, 43, 14).getTime().toString(), zman.toString());
}
@Test
public void Check_getPlagHamincha(){
Date zman = calendar.getPlagHamincha();
Assert.assertEquals(new GregorianCalendar(2010, 3, 2, 18, 2, 38).getTime().toString(), zman.toString());
}
@Test
public void Check_getSunrise(){
Date zman = calendar.getSunrise();
Assert.assertEquals(new GregorianCalendar(2010, 3, 2, 6, 39, 41).getTime().toString(), zman.toString());
}
@Test
public void Check_getSeaLevelSunrise(){
Date zman = calendar.getSeaLevelSunrise();
Assert.assertEquals(new GregorianCalendar(2010, 3, 2, 6, 39, 41).getTime().toString(), zman.toString());
}
@Test
public void Check_getBeginCivilTwilight(){
Date zman = calendar.getBeginCivilTwilight();
Assert.assertEquals(new GregorianCalendar(2010, 3, 2, 6, 12, 18).getTime().toString(), zman.toString());
}
@Test
public void Check_getBeginNauticalTwilight(){
Date zman = calendar.getBeginNauticalTwilight();
Assert.assertEquals(new GregorianCalendar(2010, 3, 2, 5, 39, 55).getTime().toString(), zman.toString());
}
@Test
public void Check_getBeginAstronomicalTwilight(){
Date zman = calendar.getBeginAstronomicalTwilight();
Assert.assertEquals(new GregorianCalendar(2010, 3, 2, 5, 6, 31).getTime().toString(), zman.toString());
}
@Test
public void Check_getSunset(){
Date zman = calendar.getSunset();
Assert.assertEquals(new GregorianCalendar(2010, 3, 2, 19, 22, 3).getTime().toString(), zman.toString());
}
@Test
public void Check_getSeaLevelSunset(){
Date zman = calendar.getSeaLevelSunset();
Assert.assertEquals(new GregorianCalendar(2010, 3, 2, 19, 22, 3).getTime().toString(), zman.toString());
}
@Test
public void Check_getEndCivilTwilight(){
Date zman = calendar.getEndCivilTwilight();
Assert.assertEquals(new GregorianCalendar(2010, 3, 2, 19, 49, 28).getTime().toString(), zman.toString());
}
@Test
public void Check_getEndNauticalTwilight(){
Date zman = calendar.getEndNauticalTwilight();
Assert.assertEquals(new GregorianCalendar(2010, 3, 2, 20, 21, 53).getTime().toString(), zman.toString());
}
@Test
public void Check_getEndAstronomicalTwilight(){
Date zman = calendar.getEndAstronomicalTwilight();
Assert.assertEquals(new GregorianCalendar(2010, 3, 2, 20, 55, 21).getTime().toString(), zman.toString());
}
@Test
public void Check_getSunTransit(){
Date zman = calendar.getSunTransit();
Assert.assertEquals(new GregorianCalendar(2010, 3, 2, 13, 0, 52).getTime().toString(), zman.toString());
}
@Test
public void Check_getShaahZmanis19Point8Degrees(){
Assert.assertEquals(4847270, calendar.getShaahZmanis19Point8Degrees());
}
@Test
public void Check_getShaahZmanis18Degrees(){
Assert.assertEquals(4744143, calendar.getShaahZmanis18Degrees());
}
@Test
public void Check_getShaahZmanis26Degrees(){
Assert.assertEquals(5217225, calendar.getShaahZmanis26Degrees());
}
@Test
public void Check_getShaahZmanis16Point1Degrees(){
Assert.assertEquals(4636860, calendar.getShaahZmanis16Point1Degrees());
}
@Test
public void Check_getShaahZmanis60Minutes(){
Assert.assertEquals(4411823, calendar.getShaahZmanis60Minutes());
}
@Test
public void Check_getShaahZmanis72Minutes(){
Assert.assertEquals(4531823, calendar.getShaahZmanis72Minutes());
}
@Test
public void Check_getShaahZmanis72MinutesZmanis(){
Assert.assertEquals(4574187, calendar.getShaahZmanis72MinutesZmanis());
}
@Test
public void Check_getShaahZmanis90Minutes(){
Assert.assertEquals(4711823, calendar.getShaahZmanis90Minutes());
}
@Test
public void Check_getShaahZmanis90MinutesZmanis(){
Assert.assertEquals(4764778, calendar.getShaahZmanis90MinutesZmanis());
}
@Test
public void Check_getShaahZmanis96MinutesZmanis(){
Assert.assertEquals(4828309, calendar.getShaahZmanis96MinutesZmanis());
}
@Test
public void Check_getShaahZmanisAteretTorah(){
Assert.assertEquals(4393005, calendar.getShaahZmanisAteretTorah());
}
@Test
public void Check_getShaahZmanis96Minutes(){
Assert.assertEquals(4771823, calendar.getShaahZmanis96Minutes());
}
@Test
public void Check_getShaahZmanis120Minutes(){
Assert.assertEquals(5011823, calendar.getShaahZmanis120Minutes());
}
@Test
public void Check_getShaahZmanis120MinutesZmanis(){
Assert.assertEquals(5082430, calendar.getShaahZmanis120MinutesZmanis());
}
@Test
public void Check_getShaahZmanisGra(){
Assert.assertEquals(3811823, calendar.getShaahZmanisGra());
}
@Test
public void Check_getShaahZmanisMGA(){
Assert.assertEquals(4531823, calendar.getShaahZmanisMGA());
}
@Test
public void Check_getTemporalHour(){
Assert.assertEquals(3811823, calendar.getTemporalHour());
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment