@Test public void testGetInstance_WhenAlreadyCreated() { LunchParser.getInstance(); LunchParser lp = LunchParser.getInstance(); Assert.assertNotNull(lp); }
public static LunchParser getInstance() { if(instance == null) { instance = new LunchParser(); } return instance; }
LunchParser { public static LunchParser getInstance() { if(instance == null) { instance = new LunchParser(); } return instance; } }
LunchParser { public static LunchParser getInstance() { if(instance == null) { instance = new LunchParser(); } return instance; } private  LunchParser(); }
LunchParser { public static LunchParser getInstance() { if(instance == null) { instance = new LunchParser(); } return instance; } private  LunchParser(); static LunchParser getInstance(); void parse(); ArrayList<LunchOffer> getLunchData(int mensaLocation); List<Mensa> getLunchDataForAllMensas(); }
LunchParser { public static LunchParser getInstance() { if(instance == null) { instance = new LunchParser(); } return instance; } private  LunchParser(); static LunchParser getInstance(); void parse(); ArrayList<LunchOffer> getLunchData(int mensaLocation); List<Mensa> getLunchDataForAllMensas();  }