| /** | |
| * prepareRestore.java | |
| * | |
| * GGSN node configuration | |
| */ | |
| /* Prepare/Restore commands supported by test harness | |
| * | |
| * f_TELNET_Init | |
| * f_sr_TELNET_OverrideConfiguration | |
| * ...more TBD... | |
| */ | |
| /* ----------------------------------------------------------- */ | |
| /* prepareCmds [] | |
| * Put your prepare commands here. | |
| * Pick from the list above. | |
| */ | |
| const String[] prepareCmds = | |
| { "f_TELNET_Init", | |
| "f_sr_TELNET_OverrideConfiguration" | |
| }; | |
| /* restoreCmds [] | |
| * Put your restore commands here. | |
| * Pick from the list above. | |
| */ | |
| const String[] restoreCmds = | |
| { "f_TELNET_Init", | |
| "f_sr_TELNET_OverrideConfiguration" | |
| }; | |
| /* ----------------------------------------------------------- */ | |
| void handlePrepare(Prepare msg) | |
| { | |
| require msg.cmds != null; | |
| require msg.cmds.length == prepareCmds.length; | |
| for (int i = 0; i < prepareCmds.length; i++) | |
| require msg.cmds[i] == prepareCmds[i]; | |
| } | |
| void handleRestore(Restore msg) | |
| { | |
| require msg.cmds != null; | |
| require msg.cmds.length == restoreCmds.length; | |
| for (int i = 0; i < restoreCmds.length; i++) | |
| require msg.cmds[i] == restoreCmds[i]; | |
| } |