/**
 * Copyright 2010-2015 Ralph Schaer <ralphschaer@gmail.com>
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
package ch.rasc.extdirectspring.demo;

import org.springframework.stereotype.Service;

import ch.ralscha.extdirectspring.annotation.ExtDirectMethod;

@Service
public class TestAction {

	@ExtDirectMethod(group = "example")
	public long multiply(Long num) {
		if (num != null) {
			return num * 8;
		}
		return 0;
	}

	@ExtDirectMethod(group = "example")
	public String doEcho(String message) {
		return message;
	}

}

@@ -656,16 +656,55 @@
 .demo;%0A%0A
+import java.util.concurrent.TimeUnit;%0A%0A
 import o
@@ -1070,12 +1070,163 @@
 sage;%0A%09%7D
+%0A%09%0A%09@ExtDirectMethod(group = %22example%22)%0A%09public int oneMinuteRunning(int a) throws InterruptedException %7B%0A%09%09TimeUnit.MINUTES.sleep(1);%0A%09%09return a+1;%0A%09%7D
 %0A%0A%7D%0A

Add a long running method for testing