diff options
author | huangjian <huang.jian12@zte.com.cn> | 2016-09-20 11:24:32 +0800 |
---|---|---|
committer | huangjian <huang.jian12@zte.com.cn> | 2016-09-20 11:24:32 +0800 |
commit | 97515bb57110cf736e92c5ae0c6fb330aff3d489 (patch) | |
tree | 8b9b1887f45eebff9ef70a038d5ea232e139fa79 /servicegateway/service/src/test | |
parent | 8db529e4bc5575bc2d04d19312766e7cb1dfe850 (diff) |
Set java files encoding to UNIX
Change-Id: I4f321a11b56f3b2f2b14e63a814632a7c1c7ba88
Signed-off-by: huangjian <huang.jian12@zte.com.cn>
Diffstat (limited to 'servicegateway/service/src/test')
2 files changed, 86 insertions, 86 deletions
diff --git a/servicegateway/service/src/test/java/org/openo/gso/gui/servicegateway/exception/ErrorCodeTest.java b/servicegateway/service/src/test/java/org/openo/gso/gui/servicegateway/exception/ErrorCodeTest.java index 422c5e41..74f9f432 100644 --- a/servicegateway/service/src/test/java/org/openo/gso/gui/servicegateway/exception/ErrorCodeTest.java +++ b/servicegateway/service/src/test/java/org/openo/gso/gui/servicegateway/exception/ErrorCodeTest.java @@ -1,39 +1,39 @@ -/*
- * Copyright (c) 2016, Huawei Technologies Co., Ltd.
- *
- * 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 org.openo.gso.gui.servicegateway.exception;
-
-import static org.junit.Assert.assertEquals;
-
-import org.junit.Test;
-
-/**
- * Test Constant class.<br/>
- * <p>
- * </p>
- *
- * @author
- * @version GSO 0.5 2016/8/4
- */
-public class ErrorCodeTest {
-
- @Test
- public void test() {
- assertEquals("servicemgr.mysql.oper_mysql_db_error", ErrorCode.SVCMGR_OPER_MYSQL_DB_ERROR);
- assertEquals("servicemgr.bad_param", ErrorCode.SVCMGR_SERVICEMGR_BAD_PARAM);
- }
-
-}
+/* + * Copyright (c) 2016, Huawei Technologies Co., Ltd. + * + * 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 org.openo.gso.gui.servicegateway.exception; + +import static org.junit.Assert.assertEquals; + +import org.junit.Test; + +/** + * Test Constant class.<br/> + * <p> + * </p> + * + * @author + * @version GSO 0.5 2016/8/4 + */ +public class ErrorCodeTest { + + @Test + public void test() { + assertEquals("servicemgr.mysql.oper_mysql_db_error", ErrorCode.SVCMGR_OPER_MYSQL_DB_ERROR); + assertEquals("servicemgr.bad_param", ErrorCode.SVCMGR_SERVICEMGR_BAD_PARAM); + } + +} diff --git a/servicegateway/service/src/test/java/org/openo/gso/gui/servicegateway/exception/HttpCodeTest.java b/servicegateway/service/src/test/java/org/openo/gso/gui/servicegateway/exception/HttpCodeTest.java index cefdb50b..06d247b7 100644 --- a/servicegateway/service/src/test/java/org/openo/gso/gui/servicegateway/exception/HttpCodeTest.java +++ b/servicegateway/service/src/test/java/org/openo/gso/gui/servicegateway/exception/HttpCodeTest.java @@ -1,47 +1,47 @@ -/*
- * Copyright (c) 2016, Huawei Technologies Co., Ltd.
- *
- * 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 org.openo.gso.gui.servicegateway.exception;
-
-import static org.junit.Assert.assertEquals;
-import static org.junit.Assert.assertFalse;
-import static org.junit.Assert.assertTrue;
-
-import org.junit.Test;
-
-/**
- * Test Constant class.<br/>
- * <p>
- * </p>
- *
- * @author
- * @version GSO 0.5 2016/8/4
- */
-public class HttpCodeTest {
-
- @Test
- public void test() {
- assertEquals(400, HttpCode.BAD_REQUEST);
- assertEquals(500, HttpCode.INTERNAL_SERVER_ERROR);
- assertEquals(406, HttpCode.NOT_ACCEPTABLE);
- assertEquals(404, HttpCode.NOT_FOUND);
- assertEquals(202, HttpCode.RESPOND_ACCEPTED);
- assertEquals(200, HttpCode.RESPOND_OK);
- assertTrue(HttpCode.isSucess(200));
- assertFalse(HttpCode.isSucess(400));
- }
-
-}
+/* + * Copyright (c) 2016, Huawei Technologies Co., Ltd. + * + * 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 org.openo.gso.gui.servicegateway.exception; + +import static org.junit.Assert.assertEquals; +import static org.junit.Assert.assertFalse; +import static org.junit.Assert.assertTrue; + +import org.junit.Test; + +/** + * Test Constant class.<br/> + * <p> + * </p> + * + * @author + * @version GSO 0.5 2016/8/4 + */ +public class HttpCodeTest { + + @Test + public void test() { + assertEquals(400, HttpCode.BAD_REQUEST); + assertEquals(500, HttpCode.INTERNAL_SERVER_ERROR); + assertEquals(406, HttpCode.NOT_ACCEPTABLE); + assertEquals(404, HttpCode.NOT_FOUND); + assertEquals(202, HttpCode.RESPOND_ACCEPTED); + assertEquals(200, HttpCode.RESPOND_OK); + assertTrue(HttpCode.isSucess(200)); + assertFalse(HttpCode.isSucess(400)); + } + +} |