From 0c2cc59b558c8f8bc800c308aab1b7f45b7bc552 Mon Sep 17 00:00:00 2001 From: YuLuo Date: Tue, 6 Aug 2024 00:37:55 +0800 Subject: [PATCH] [chore] add service test tmpl file (#2472) Signed-off-by: yuluo-yx Co-authored-by: Calvin --- .../manager/service/AccountServiceTest.java | 27 ++++++++++++++++++ .../manager/service/AlibabaAiServiceTest.java | 27 ++++++++++++++++++ .../manager/service/KimiAiServiceTest.java | 28 +++++++++++++++++++ .../service/MailGeneralConfigServiceTest.java | 27 ++++++++++++++++++ .../service/ObjectStoreConfigServiceTest.java | 27 ++++++++++++++++++ .../service/ObsObjectStoreServiceTest.java | 27 ++++++++++++++++++ .../service/SmsGeneralConfigServiceTest.java | 27 ++++++++++++++++++ .../service/SparkDeskAiServiceTest.java | 27 ++++++++++++++++++ .../service/StatusPageServiceTest.java | 27 ++++++++++++++++++ .../SystemGeneralConfigServiceTest.java | 27 ++++++++++++++++++ .../service/SystemSecretServiceTest.java | 27 ++++++++++++++++++ .../manager/service/ZhiPuServiceTest.java | 27 ++++++++++++++++++ 12 files changed, 325 insertions(+) create mode 100644 manager/src/test/java/org/apache/hertzbeat/manager/service/AccountServiceTest.java create mode 100644 manager/src/test/java/org/apache/hertzbeat/manager/service/AlibabaAiServiceTest.java create mode 100644 manager/src/test/java/org/apache/hertzbeat/manager/service/KimiAiServiceTest.java create mode 100644 manager/src/test/java/org/apache/hertzbeat/manager/service/MailGeneralConfigServiceTest.java create mode 100644 manager/src/test/java/org/apache/hertzbeat/manager/service/ObjectStoreConfigServiceTest.java create mode 100644 manager/src/test/java/org/apache/hertzbeat/manager/service/ObsObjectStoreServiceTest.java create mode 100644 manager/src/test/java/org/apache/hertzbeat/manager/service/SmsGeneralConfigServiceTest.java create mode 100644 manager/src/test/java/org/apache/hertzbeat/manager/service/SparkDeskAiServiceTest.java create mode 100644 manager/src/test/java/org/apache/hertzbeat/manager/service/StatusPageServiceTest.java create mode 100644 manager/src/test/java/org/apache/hertzbeat/manager/service/SystemGeneralConfigServiceTest.java create mode 100644 manager/src/test/java/org/apache/hertzbeat/manager/service/SystemSecretServiceTest.java create mode 100644 manager/src/test/java/org/apache/hertzbeat/manager/service/ZhiPuServiceTest.java diff --git a/manager/src/test/java/org/apache/hertzbeat/manager/service/AccountServiceTest.java b/manager/src/test/java/org/apache/hertzbeat/manager/service/AccountServiceTest.java new file mode 100644 index 00000000000..46f55d22bf9 --- /dev/null +++ b/manager/src/test/java/org/apache/hertzbeat/manager/service/AccountServiceTest.java @@ -0,0 +1,27 @@ +/* + * 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.hertzbeat.manager.service; + +import org.apache.hertzbeat.manager.service.impl.AccountServiceImpl; + +/** + * test case for {@link AccountServiceImpl} + */ + +class AccountServiceTest { +} diff --git a/manager/src/test/java/org/apache/hertzbeat/manager/service/AlibabaAiServiceTest.java b/manager/src/test/java/org/apache/hertzbeat/manager/service/AlibabaAiServiceTest.java new file mode 100644 index 00000000000..ac6b7bbccec --- /dev/null +++ b/manager/src/test/java/org/apache/hertzbeat/manager/service/AlibabaAiServiceTest.java @@ -0,0 +1,27 @@ +/* + * 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.hertzbeat.manager.service; + +import org.apache.hertzbeat.manager.service.impl.AlibabaAiServiceImpl; + +/** + * test case for {@link AlibabaAiServiceImpl} + */ + +class AlibabaAiServiceTest { +} diff --git a/manager/src/test/java/org/apache/hertzbeat/manager/service/KimiAiServiceTest.java b/manager/src/test/java/org/apache/hertzbeat/manager/service/KimiAiServiceTest.java new file mode 100644 index 00000000000..30f0eb790f9 --- /dev/null +++ b/manager/src/test/java/org/apache/hertzbeat/manager/service/KimiAiServiceTest.java @@ -0,0 +1,28 @@ +/* + * 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.hertzbeat.manager.service; + + +import org.apache.hertzbeat.manager.service.impl.KimiAiServiceImpl; + +/** + * test case for {@link KimiAiServiceImpl} + */ + +class KimiAiServiceTest { +} diff --git a/manager/src/test/java/org/apache/hertzbeat/manager/service/MailGeneralConfigServiceTest.java b/manager/src/test/java/org/apache/hertzbeat/manager/service/MailGeneralConfigServiceTest.java new file mode 100644 index 00000000000..7d9ea39793d --- /dev/null +++ b/manager/src/test/java/org/apache/hertzbeat/manager/service/MailGeneralConfigServiceTest.java @@ -0,0 +1,27 @@ +/* + * 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.hertzbeat.manager.service; + +import org.apache.hertzbeat.manager.service.impl.MailGeneralConfigServiceImpl; + +/** + * test case for {@link MailGeneralConfigServiceImpl} + */ + +class MailGeneralConfigServiceTest { +} diff --git a/manager/src/test/java/org/apache/hertzbeat/manager/service/ObjectStoreConfigServiceTest.java b/manager/src/test/java/org/apache/hertzbeat/manager/service/ObjectStoreConfigServiceTest.java new file mode 100644 index 00000000000..54c2403db86 --- /dev/null +++ b/manager/src/test/java/org/apache/hertzbeat/manager/service/ObjectStoreConfigServiceTest.java @@ -0,0 +1,27 @@ +/* + * 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.hertzbeat.manager.service; + +import org.apache.hertzbeat.manager.service.impl.ObjectStoreConfigServiceImpl; + +/** + * test case for {@link ObjectStoreConfigServiceImpl} + */ + +class ObjectStoreConfigServiceTest { +} diff --git a/manager/src/test/java/org/apache/hertzbeat/manager/service/ObsObjectStoreServiceTest.java b/manager/src/test/java/org/apache/hertzbeat/manager/service/ObsObjectStoreServiceTest.java new file mode 100644 index 00000000000..f0e6a0e2e67 --- /dev/null +++ b/manager/src/test/java/org/apache/hertzbeat/manager/service/ObsObjectStoreServiceTest.java @@ -0,0 +1,27 @@ +/* + * 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.hertzbeat.manager.service; + +import org.apache.hertzbeat.manager.service.impl.ObsObjectStoreServiceImpl; + +/** + * test case for {@link ObsObjectStoreServiceImpl} + */ + +class ObsObjectStoreServiceTest { +} diff --git a/manager/src/test/java/org/apache/hertzbeat/manager/service/SmsGeneralConfigServiceTest.java b/manager/src/test/java/org/apache/hertzbeat/manager/service/SmsGeneralConfigServiceTest.java new file mode 100644 index 00000000000..6ba364b853e --- /dev/null +++ b/manager/src/test/java/org/apache/hertzbeat/manager/service/SmsGeneralConfigServiceTest.java @@ -0,0 +1,27 @@ +/* + * 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.hertzbeat.manager.service; + +import org.apache.hertzbeat.manager.service.impl.SmsGeneralConfigServiceImpl; + +/** + * test case for {@link SmsGeneralConfigServiceImpl} + */ + +class SmsGeneralConfigServiceTest { +} diff --git a/manager/src/test/java/org/apache/hertzbeat/manager/service/SparkDeskAiServiceTest.java b/manager/src/test/java/org/apache/hertzbeat/manager/service/SparkDeskAiServiceTest.java new file mode 100644 index 00000000000..f8dd26a998b --- /dev/null +++ b/manager/src/test/java/org/apache/hertzbeat/manager/service/SparkDeskAiServiceTest.java @@ -0,0 +1,27 @@ +/* + * 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.hertzbeat.manager.service; + +import org.apache.hertzbeat.manager.service.impl.SparkDeskAiServiceImpl; + +/** + * test case for {@link SparkDeskAiServiceImpl} + */ + +class SparkDeskAiServiceTest { +} diff --git a/manager/src/test/java/org/apache/hertzbeat/manager/service/StatusPageServiceTest.java b/manager/src/test/java/org/apache/hertzbeat/manager/service/StatusPageServiceTest.java new file mode 100644 index 00000000000..e3714240a42 --- /dev/null +++ b/manager/src/test/java/org/apache/hertzbeat/manager/service/StatusPageServiceTest.java @@ -0,0 +1,27 @@ +/* + * 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.hertzbeat.manager.service; + +import org.apache.hertzbeat.manager.service.impl.StatusPageServiceImpl; + +/** + * test case for {@link StatusPageServiceImpl} + */ + +class StatusPageServiceTest { +} diff --git a/manager/src/test/java/org/apache/hertzbeat/manager/service/SystemGeneralConfigServiceTest.java b/manager/src/test/java/org/apache/hertzbeat/manager/service/SystemGeneralConfigServiceTest.java new file mode 100644 index 00000000000..bed51fdc874 --- /dev/null +++ b/manager/src/test/java/org/apache/hertzbeat/manager/service/SystemGeneralConfigServiceTest.java @@ -0,0 +1,27 @@ +/* + * 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.hertzbeat.manager.service; + +import org.apache.hertzbeat.manager.service.impl.SystemGeneralConfigServiceImpl; + +/** + * test case for {@link SystemGeneralConfigServiceImpl} + */ + +class SystemGeneralConfigServiceTest { +} diff --git a/manager/src/test/java/org/apache/hertzbeat/manager/service/SystemSecretServiceTest.java b/manager/src/test/java/org/apache/hertzbeat/manager/service/SystemSecretServiceTest.java new file mode 100644 index 00000000000..729cd130f61 --- /dev/null +++ b/manager/src/test/java/org/apache/hertzbeat/manager/service/SystemSecretServiceTest.java @@ -0,0 +1,27 @@ +/* + * 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.hertzbeat.manager.service; + +import org.apache.hertzbeat.manager.service.impl.SystemSecretServiceImpl; + +/** + * test case for {@link SystemSecretServiceImpl} + */ + +class SystemSecretServiceTest { +} diff --git a/manager/src/test/java/org/apache/hertzbeat/manager/service/ZhiPuServiceTest.java b/manager/src/test/java/org/apache/hertzbeat/manager/service/ZhiPuServiceTest.java new file mode 100644 index 00000000000..68329d472b4 --- /dev/null +++ b/manager/src/test/java/org/apache/hertzbeat/manager/service/ZhiPuServiceTest.java @@ -0,0 +1,27 @@ +/* + * 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.hertzbeat.manager.service; + +import org.apache.hertzbeat.manager.service.impl.ZhiPuServiceImpl; + +/** + * test case for {@link ZhiPuServiceImpl} + */ + +class ZhiPuServiceTest { +}