Repository: openmeetings Updated Branches: refs/heads/master e150dc3a3 -> 50ec59c5c
[OPENMEETINGS-1714] coverage is improved Project: http://git-wip-us.apache.org/repos/asf/openmeetings/repo Commit: http://git-wip-us.apache.org/repos/asf/openmeetings/commit/50ec59c5 Tree: http://git-wip-us.apache.org/repos/asf/openmeetings/tree/50ec59c5 Diff: http://git-wip-us.apache.org/repos/asf/openmeetings/diff/50ec59c5 Branch: refs/heads/master Commit: 50ec59c5c0c6097e35f6ba72c83ec35a79bc71dc Parents: e150dc3 Author: Maxim Solodovnik <[email protected]> Authored: Thu Oct 5 16:57:34 2017 +0700 Committer: Maxim Solodovnik <[email protected]> Committed: Thu Oct 5 16:57:34 2017 +0700 ---------------------------------------------------------------------- .../webservice/TestInfoService.java | 37 ++++++++++++++++++++ 1 file changed, 37 insertions(+) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/openmeetings/blob/50ec59c5/openmeetings-web/src/test/java/org/apache/openmeetings/webservice/TestInfoService.java ---------------------------------------------------------------------- diff --git a/openmeetings-web/src/test/java/org/apache/openmeetings/webservice/TestInfoService.java b/openmeetings-web/src/test/java/org/apache/openmeetings/webservice/TestInfoService.java new file mode 100644 index 0000000..1ea7d94 --- /dev/null +++ b/openmeetings-web/src/test/java/org/apache/openmeetings/webservice/TestInfoService.java @@ -0,0 +1,37 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you 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 org.apache.openmeetings.webservice; + +import static org.junit.Assert.assertNotNull; + +import org.apache.openmeetings.db.dto.basic.Info; +import org.junit.Test; + +public class TestInfoService extends AbstractWebServiceTest { + public static final String INFO_SERVICE_URL = BASE_SERVICES_URL + "/info"; + + @Test + public void infoTest() { + Info info = getClient(INFO_SERVICE_URL).path("/version").get(Info.class); + assertNotNull("Valid info should be returned", info); + assertNotNull("Valid BuildDate should be returned", info.getBuildDate()); + assertNotNull("Valid Revision should be returned", info.getRevision()); + assertNotNull("Valid Version should be returned", info.getVersion()); + } +}
