Skip to content
Snippets Groups Projects
Commit 8f925982 authored by Piotr Gawron's avatar Piotr Gawron
Browse files

parsing of calendar imrpoved

parent 11dec562
No related branches found
No related tags found
1 merge request!5Appointments dev
......@@ -27,6 +27,10 @@ public enum AppointmentTypeCollection {
new String[] { "level BG + SB + mPower" }), //
LEVEL_BV_BG_SB(new AppointmentType[] { AppointmentType.LEVEL_BV, AppointmentType.LEVEL_BG, AppointmentType.LEVEL_SB }, //
new String[] { "evel BV + BG + SB", "BV + BG + SB" }), //
LEVEL_BV_SB_NEURO(new AppointmentType[] { AppointmentType.LEVEL_BV, AppointmentType.LEVEL_SB, AppointmentType.LEVEL_AN }, //
new String[] { "BV + SB + neuro" }), //
LEVEL_BV_SB_M_POWER(new AppointmentType[] { AppointmentType.LEVEL_BV, AppointmentType.LEVEL_SB, AppointmentType.LEVEL_B_M_POWER}, //
new String[] { "BV + SB + mPower" }), //
LEVEL_BV_SB(new AppointmentType[] { AppointmentType.LEVEL_BV, AppointmentType.LEVEL_SB }, //
new String[] { "evel BV + SB", "BV + SB" }), //
LEVEL_BV_BG(new AppointmentType[] { AppointmentType.LEVEL_BV, AppointmentType.LEVEL_BG }, //
......
......@@ -171,6 +171,12 @@ public class LihControlParser extends SubjectParser {
return "French";
case ("D"):
return "German";
case ("A"):
return "German";
case ("E"):
return "Spanish";
case ("ALL"):
return "German";
case ("GB"):
return "English";
case ("P"):
......
......@@ -83,7 +83,17 @@ public class CellParserTest extends TestBase {
new CellParseTestCase(
"Gawron Piotr level BG + SB + M-Power", piotrGawron, null,
new AppointmentType[] { AppointmentType.LEVEL_BG, AppointmentType.LEVEL_SB, AppointmentType.LEVEL_B_M_POWER }));
testCases.add(
new CellParseTestCase(
"Gawron Piotr BV © + SB © + neuro", piotrGawron, null,
new AppointmentType[] { AppointmentType.LEVEL_BV, AppointmentType.LEVEL_SB, AppointmentType.LEVEL_AN }));
testCases.add(
new CellParseTestCase(
"Gawron Piotr BV © + SB © + M-Power", piotrGawron, null,
new AppointmentType[] { AppointmentType.LEVEL_BV, AppointmentType.LEVEL_SB, AppointmentType.LEVEL_B_M_POWER }));
}
@Test
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment