init()
262728293031323334353637
{ @Contribution( configurationId="panorama.startup.tasks" ) public void contributeTaks(List<Task> tasks) { Task discussionStartupTask = new Task(); ExecuteStatic executable = new ExecuteStatic(); executable.setTargetClass(DiscussionsStartup.class); discussionStartupTask.setExecutable(executable); discussionStartupTask.setId("discussions"); discussionStartupTask.setTitle("Discussions"); tasks.add(discussionStartupTask);
3940414243444546474849505152
_staticMethodInvoked = false; } public void testInvoke() throws Exception { ExecuteStatic e = new ExecuteStatic(); e.setMethodName("staticMethod"); e.setTargetClass(TestExecuteStatic.class); e.execute(); assertEquals(true, _staticMethodInvoked); }