From 29ca8ba3c5d5d4d93ebd2567d9e326b7198ce6c9 Mon Sep 17 00:00:00 2001 From: Robert von Burg Date: Thu, 31 Jul 2014 16:34:58 +0200 Subject: [PATCH] [New] Added ClearModelServiceTest --- .../service/ClearModelServiceTest.java | 52 +++++++++++++++++++ 1 file changed, 52 insertions(+) create mode 100644 src/test/java/li/strolch/service/ClearModelServiceTest.java diff --git a/src/test/java/li/strolch/service/ClearModelServiceTest.java b/src/test/java/li/strolch/service/ClearModelServiceTest.java new file mode 100644 index 000000000..e89041802 --- /dev/null +++ b/src/test/java/li/strolch/service/ClearModelServiceTest.java @@ -0,0 +1,52 @@ +/* + * Copyright 2013 Robert von Burg + * + * 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 li.strolch.service; + +import li.strolch.service.api.Service; +import li.strolch.service.api.ServiceArgument; +import li.strolch.service.api.ServiceResult; +import li.strolch.service.test.AbstractRealmServiceTest; + +import org.junit.Before; + +/** + * @author Robert von Burg + */ +public class ClearModelServiceTest extends AbstractRealmServiceTest { + + private ClearModelService svc; + private ClearModelArgument arg; + + @Before + public void before() { + svc = new ClearModelService(); + arg = new ClearModelArgument(); + arg.clearOrders = true; + arg.clearResources = true; + } + + @Override + @SuppressWarnings("unchecked") + public T getArg() { + return (T) this.arg; + } + + @Override + @SuppressWarnings("unchecked") + public Service getSvc() { + return (Service) this.svc; + } +}