From 4c7fd71236ba606715b7ac88c35d9dd755260d45 Mon Sep 17 00:00:00 2001 From: HYL123698745 <1252347619@qq.com> Date: Tue, 1 Jun 2021 14:49:40 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8F=90=E4=BA=A4=E4=BB=A3=E7=A2=BC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.OPENSOURCE | 10 ++++++++ .../com/chinasoft/ohos/ExampleOhosTest.java} | 6 +++-- .../ExampleOhosTest.java | 25 +++++++++++++++++++ 3 files changed, 39 insertions(+), 2 deletions(-) create mode 100644 README.OPENSOURCE rename entry/src/{test/java/com/chinasoft/ohos/ExampleTest.java => ohostest/java/com/chinasoft/ohos/ExampleOhosTest.java} (76%) create mode 100644 entry/src/ohostest/java/com/zhuangfei/android_timetableview/ExampleOhosTest.java diff --git a/README.OPENSOURCE b/README.OPENSOURCE new file mode 100644 index 0000000..f324cf4 --- /dev/null +++ b/README.OPENSOURCE @@ -0,0 +1,10 @@ +[ + { + "Name": "TimetableView", + "License": "MIT License", + "License File": "LICENSE", + "Version Number": " Release版本号 v2.0.7-beta ", + "Upstream URL": "https://github.com/zfman/TimetableView", + "Description": "一款开源、完善、高效的课程表控件,支持添加广告、课程重叠自动处理、透明背景设置、空白格子点击事件处理等丰富的功能,并且有完善的开发文档、案例以供参考" + } +] \ No newline at end of file diff --git a/entry/src/test/java/com/chinasoft/ohos/ExampleTest.java b/entry/src/ohostest/java/com/chinasoft/ohos/ExampleOhosTest.java similarity index 76% rename from entry/src/test/java/com/chinasoft/ohos/ExampleTest.java rename to entry/src/ohostest/java/com/chinasoft/ohos/ExampleOhosTest.java index adfbba0..3401f21 100644 --- a/entry/src/test/java/com/chinasoft/ohos/ExampleTest.java +++ b/entry/src/ohostest/java/com/chinasoft/ohos/ExampleOhosTest.java @@ -12,12 +12,14 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package com.chinasoft.ohos ; +package com.chinasoft.ohos; import org.junit.Test; -public class ExampleTest { +public class ExampleOhosTest { + //(全UI应用、不支持Context等等原因)不支持单元测试 @Test public void onStart() { + System.out.println("纯UI类项目,不涉及单元测试"); } } diff --git a/entry/src/ohostest/java/com/zhuangfei/android_timetableview/ExampleOhosTest.java b/entry/src/ohostest/java/com/zhuangfei/android_timetableview/ExampleOhosTest.java new file mode 100644 index 0000000..b7c1a61 --- /dev/null +++ b/entry/src/ohostest/java/com/zhuangfei/android_timetableview/ExampleOhosTest.java @@ -0,0 +1,25 @@ +/* + * Copyright (C) 2021 Huawei Device 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 com.zhuangfei.android_timetableview; + +import org.junit.Test; + +public class ExampleOhosTest { + //(全UI应用、不支持Context等等原因)不支持单元测试 + @Test + public void onStart() { + System.out.println("纯UI类项目,不涉及单元测试"); + } +} -- Gitee