This is an automated email from the ASF dual-hosted git repository.
casion pushed a commit to branch dev-1.3.1
in repository https://gitbox.apache.org/repos/asf/incubator-linkis.git
The following commit(s) were added to refs/heads/dev-1.3.1 by this push:
new 3159eb012 feat: linkis-cli-common add unit test (#3821)
3159eb012 is described below
commit 3159eb01290b9bb6c89571567b71d7eba7e4aeac
Author: ruY <[email protected]>
AuthorDate: Sun Nov 13 21:34:56 2022 +0800
feat: linkis-cli-common add unit test (#3821)
---
.../cli/common/exception/error/ErrorLevelTest.java | 42 ++++++++++++++++++++++
1 file changed, 42 insertions(+)
diff --git
a/linkis-computation-governance/linkis-client/linkis-cli/linkis-cli-common/src/test/java/org/apache/linkis/cli/common/exception/error/ErrorLevelTest.java
b/linkis-computation-governance/linkis-client/linkis-cli/linkis-cli-common/src/test/java/org/apache/linkis/cli/common/exception/error/ErrorLevelTest.java
new file mode 100644
index 000000000..e6d14f71e
--- /dev/null
+++
b/linkis-computation-governance/linkis-client/linkis-cli/linkis-cli-common/src/test/java/org/apache/linkis/cli/common/exception/error/ErrorLevelTest.java
@@ -0,0 +1,42 @@
+/*
+ * 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.linkis.cli.common.exception.error;
+
+import org.junit.jupiter.api.Assertions;
+import org.junit.jupiter.api.DisplayName;
+import org.junit.jupiter.api.Test;
+
+public class ErrorLevelTest {
+
+ @Test
+ @DisplayName("enumTest")
+ public void enumTest() {
+
+ int infoLevel = ErrorLevel.INFO.getLevel();
+ int warnLevel = ErrorLevel.WARN.getLevel();
+ int errorLevel = ErrorLevel.ERROR.getLevel();
+ int fatalLevel = ErrorLevel.FATAL.getLevel();
+ int retryLevel = ErrorLevel.RETRY.getLevel();
+
+ Assertions.assertTrue(0 == infoLevel);
+ Assertions.assertTrue(1 == warnLevel);
+ Assertions.assertTrue(2 == errorLevel);
+ Assertions.assertTrue(3 == fatalLevel);
+ Assertions.assertTrue(4 == retryLevel);
+ }
+}
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]