Lines Matching refs:appController

45   private AppControllerForTest appController;  field in TestAppController
71 appController = new AppControllerForTest(app, configuration, ctx); in setUp()
72 appController.getProperty().put(AMParams.JOB_ID, "job_01_01"); in setUp()
73 appController.getProperty().put(AMParams.TASK_ID, "task_01_01_m01_01"); in setUp()
83 appController.badRequest(message); in testBadRequest()
90 appController.badRequest(null); in testBadRequestWithNullMessage()
96 assertEquals("application_0_0000", appController.getProperty() in verifyExpectations()
98 assertNotNull(appController.getProperty().get("rm.web")); in verifyExpectations()
100 appController.getProperty().get("title")); in verifyExpectations()
109 appController.info(); in testInfo()
110 Iterator<ResponseInfo.Item> iterator = appController.getResponseInfo() in testInfo()
137 appController.job(); in testGetJob()
138 verify(appController.response()).setContentType(MimeType.TEXT); in testGetJob()
141 appController.getData()); in testGetJob()
145 appController.getProperty().remove(AMParams.JOB_ID); in testGetJob()
146 appController.job(); in testGetJob()
149 appController.getData()); in testGetJob()
151 appController.getProperty().put(AMParams.JOB_ID, "job_01_01"); in testGetJob()
152 appController.job(); in testGetJob()
153 assertEquals(JobPage.class, appController.getClazz()); in testGetJob()
165 appController.jobCounters(); in testGetJobCounters()
166 verify(appController.response()).setContentType(MimeType.TEXT); in testGetJobCounters()
169 appController.getData()); in testGetJobCounters()
173 appController.getProperty().remove(AMParams.JOB_ID); in testGetJobCounters()
174 appController.jobCounters(); in testGetJobCounters()
177 appController.getData()); in testGetJobCounters()
179 appController.getProperty().put(AMParams.JOB_ID, "job_01_01"); in testGetJobCounters()
180 appController.jobCounters(); in testGetJobCounters()
181 assertEquals(CountersPage.class, appController.getClazz()); in testGetJobCounters()
193 appController.taskCounters(); in testGetTaskCounters()
194 verify(appController.response()).setContentType(MimeType.TEXT); in testGetTaskCounters()
197 appController.getData()); in testGetTaskCounters()
202 appController.getProperty().remove(AMParams.TASK_ID); in testGetTaskCounters()
203 appController.taskCounters(); in testGetTaskCounters()
206 appController.getData()); in testGetTaskCounters()
208 appController.getProperty().put(AMParams.TASK_ID, "task_01_01_m01_01"); in testGetTaskCounters()
209 appController.taskCounters(); in testGetTaskCounters()
210 assertEquals(CountersPage.class, appController.getClazz()); in testGetTaskCounters()
218 appController.singleJobCounter(); in testGetSingleJobCounter()
219 assertEquals(SingleCounterPage.class, appController.getClazz()); in testGetSingleJobCounter()
227 appController.singleTaskCounter(); in testGetSingleTaskCounter()
228 assertEquals(SingleCounterPage.class, appController.getClazz()); in testGetSingleTaskCounter()
229 assertNotNull(appController.getProperty().get(AppController.COUNTER_GROUP)); in testGetSingleTaskCounter()
230 assertNotNull(appController.getProperty().get(AppController.COUNTER_NAME)); in testGetSingleTaskCounter()
239 appController.tasks(); in testTasks()
241 assertEquals(TasksPage.class, appController.getClazz()); in testTasks()
249 appController.task(); in testTask()
251 appController.getProperty().get("title")); in testTask()
253 assertEquals(TaskPage.class, appController.getClazz()); in testTask()
262 appController.conf(); in testConfiguration()
264 assertEquals(JobConfPage.class, appController.getClazz()); in testConfiguration()
273 appController.getProperty().remove(AMParams.TASK_TYPE); in testAttempts()
278 appController.attempts(); in testAttempts()
279 verify(appController.response()).setContentType(MimeType.TEXT); in testAttempts()
282 appController.getData()); in testAttempts()
287 appController.getProperty().remove(AMParams.TASK_ID); in testAttempts()
288 appController.attempts(); in testAttempts()
291 appController.getData()); in testAttempts()
293 appController.getProperty().put(AMParams.TASK_ID, "task_01_01_m01_01"); in testAttempts()
294 appController.attempts(); in testAttempts()
295 assertEquals("Bad request: missing task-type.", appController.getProperty() in testAttempts()
297 appController.getProperty().put(AMParams.TASK_TYPE, "m"); in testAttempts()
299 appController.attempts(); in testAttempts()
300 assertEquals("Bad request: missing attempt-state.", appController in testAttempts()
302 appController.getProperty().put(AMParams.ATTEMPT_STATE, "State"); in testAttempts()
304 appController.attempts(); in testAttempts()
306 assertEquals(AttemptsPage.class, appController.getClazz()); in testAttempts()