diff --git a/demo/hjsunit/Assertion/entry/src/main/java/com/example/assertion/MainAbility.java b/demo/hjsunit/Assertion/entry/src/main/java/com/example/assertion/MainAbility.java deleted file mode 100755 index c048ef2af5f64b0c09e7541187b17957ca234746..0000000000000000000000000000000000000000 --- a/demo/hjsunit/Assertion/entry/src/main/java/com/example/assertion/MainAbility.java +++ /dev/null @@ -1,16 +0,0 @@ -package com.example.assertion; - -import ohos.ace.ability.AceAbility; -import ohos.aafwk.content.Intent; - -public class MainAbility extends AceAbility { - @Override - public void onStart(Intent intent) { - super.onStart(intent); - } - - @Override - public void onStop() { - super.onStop(); - } -} diff --git a/demo/hjsunit/Assertion/entry/src/main/java/com/example/assertion/MyApplication.java b/demo/hjsunit/Assertion/entry/src/main/java/com/example/assertion/MyApplication.java deleted file mode 100755 index 081cff049e25f8814885cb030fb7a0de276d5a2c..0000000000000000000000000000000000000000 --- a/demo/hjsunit/Assertion/entry/src/main/java/com/example/assertion/MyApplication.java +++ /dev/null @@ -1,10 +0,0 @@ -package com.example.assertion; - -import ohos.aafwk.ability.AbilityPackage; - -public class MyApplication extends AbilityPackage { - @Override - public void onInitialize() { - super.onInitialize(); - } -} diff --git a/demo/hjsunit/Assertion/entry/src/main/js/default/app.js b/demo/hjsunit/Assertion/entry/src/main/js/default/app.js index aedcefe0054c6e16c40491f4d1abc20a4dc1c6ef..4b241cccbaa71f0c5cbd9e7dc437a0feb224c7d5 100755 --- a/demo/hjsunit/Assertion/entry/src/main/js/default/app.js +++ b/demo/hjsunit/Assertion/entry/src/main/js/default/app.js @@ -1,3 +1,17 @@ +/* + * 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. + */ export default { onCreate() { console.info('AceApplication onCreate'); diff --git a/demo/hjsunit/Assertion/entry/src/main/js/default/pages/index/index.js b/demo/hjsunit/Assertion/entry/src/main/js/default/pages/index/index.js index 8a7eec535cfd04ee1c54e23dc2d1074f889d2763..49eb46a053db5a2da9542526b61eed164fa44d26 100755 --- a/demo/hjsunit/Assertion/entry/src/main/js/default/pages/index/index.js +++ b/demo/hjsunit/Assertion/entry/src/main/js/default/pages/index/index.js @@ -1,3 +1,17 @@ +/* + * 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. + */ export default { data: { title: "" diff --git a/demo/hjsunit/Assertion/entry/src/ohosTest/java/com/example/assertion/ExampleOhosTest.java b/demo/hjsunit/Assertion/entry/src/ohosTest/java/com/example/assertion/ExampleOhosTest.java deleted file mode 100755 index 6bc1ef858e32371288cee4282869c73663db7ded..0000000000000000000000000000000000000000 --- a/demo/hjsunit/Assertion/entry/src/ohosTest/java/com/example/assertion/ExampleOhosTest.java +++ /dev/null @@ -1,14 +0,0 @@ -package com.example.assertion; - -import ohos.aafwk.ability.delegation.AbilityDelegatorRegistry; -import org.junit.Test; - -import static org.junit.Assert.assertEquals; - -public class ExampleOhosTest { - @Test - public void testBundleName() { - final String actualBundleName = AbilityDelegatorRegistry.getArguments().getTestBundleName(); - assertEquals("com.example.assertion", actualBundleName); - } -} \ No newline at end of file diff --git a/demo/hjsunit/Assertion/entry/src/ohosTest/js/default/app.js b/demo/hjsunit/Assertion/entry/src/ohosTest/js/default/app.js index 55b67e96deb821033f71d30b6fff05efdeb0d901..044bffa75e29d7a5fe32644e19cc1bbbc5e9a7b1 100755 --- a/demo/hjsunit/Assertion/entry/src/ohosTest/js/default/app.js +++ b/demo/hjsunit/Assertion/entry/src/ohosTest/js/default/app.js @@ -1,3 +1,17 @@ +/* + * 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. + */ export default { onCreate() { console.info('TestApplication onCreate'); diff --git a/demo/hjsunit/Assertion/entry/src/ohosTest/js/default/pages/index/index.js b/demo/hjsunit/Assertion/entry/src/ohosTest/js/default/pages/index/index.js index 8be2df2479a8da755ed800ad70d2b6247e21b8a2..793667c97f947fdfc22f424847e85718bad72c49 100755 --- a/demo/hjsunit/Assertion/entry/src/ohosTest/js/default/pages/index/index.js +++ b/demo/hjsunit/Assertion/entry/src/ohosTest/js/default/pages/index/index.js @@ -1,3 +1,17 @@ +/* + * 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. + */ import file from '@system.file' import app from '@system.app' import device from '@system.device' diff --git a/demo/hjsunit/Assertion/entry/src/ohosTest/js/test/ExampleJsunit.test.js b/demo/hjsunit/Assertion/entry/src/ohosTest/js/test/ExampleJsunit.test.js index b6d74caed96ddede98edd1bc9292f6568cd1cfd1..bdc0912bf7939add431943ded7146f3940144f13 100755 --- a/demo/hjsunit/Assertion/entry/src/ohosTest/js/test/ExampleJsunit.test.js +++ b/demo/hjsunit/Assertion/entry/src/ohosTest/js/test/ExampleJsunit.test.js @@ -1,3 +1,17 @@ +/* + * 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. + */ import app from '@system.app' import {describe, beforeAll, beforeEach, afterEach, afterAll, it, expect} from 'deccjsunit/index' diff --git a/demo/hjsunit/Assertion/entry/src/ohosTest/js/test/assertClose.test.js b/demo/hjsunit/Assertion/entry/src/ohosTest/js/test/assertClose.test.js index 2fb1941c7bd045e12d23fdeece33f19386af0e64..c082d4bd454032b2ad394e3cc0b35fe82d28c579 100755 --- a/demo/hjsunit/Assertion/entry/src/ohosTest/js/test/assertClose.test.js +++ b/demo/hjsunit/Assertion/entry/src/ohosTest/js/test/assertClose.test.js @@ -1,3 +1,17 @@ +/* + * 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. + */ import {describe, it, expect} from 'deccjsunit/index' describe('assertClose', function () { diff --git a/demo/hjsunit/Assertion/entry/src/ohosTest/js/test/assertContain.test.js b/demo/hjsunit/Assertion/entry/src/ohosTest/js/test/assertContain.test.js index 61e7852626f28d94424d8b3f9febe9fe315a06ac..9c5713a1e9a1858b9d8f1e0ee694b583988ec641 100755 --- a/demo/hjsunit/Assertion/entry/src/ohosTest/js/test/assertContain.test.js +++ b/demo/hjsunit/Assertion/entry/src/ohosTest/js/test/assertContain.test.js @@ -1,3 +1,17 @@ +/* + * 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. + */ import {describe, it, expect} from 'deccjsunit/index' describe('assertContain', function () { diff --git a/demo/hjsunit/Assertion/entry/src/ohosTest/js/test/assertFail.test.js b/demo/hjsunit/Assertion/entry/src/ohosTest/js/test/assertFail.test.js index 4df6dec803396f8a601bea9cfb2271d400735727..c09318bf0cf9b960925d7ca5329237a4c57db338 100755 --- a/demo/hjsunit/Assertion/entry/src/ohosTest/js/test/assertFail.test.js +++ b/demo/hjsunit/Assertion/entry/src/ohosTest/js/test/assertFail.test.js @@ -1,3 +1,17 @@ +/* + * 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. + */ import {describe, it, expect} from 'deccjsunit/index' describe('assertFail', function () { diff --git a/demo/hjsunit/Assertion/entry/src/ohosTest/js/test/assertFalse.test.js b/demo/hjsunit/Assertion/entry/src/ohosTest/js/test/assertFalse.test.js index 0a9b45de4409657a4fa3d7eeb029e58c56e5d7d9..f5cb010066369d406d1510dbff106158df2cae2a 100755 --- a/demo/hjsunit/Assertion/entry/src/ohosTest/js/test/assertFalse.test.js +++ b/demo/hjsunit/Assertion/entry/src/ohosTest/js/test/assertFalse.test.js @@ -1,3 +1,17 @@ +/* + * 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. + */ import {describe, it, expect} from 'deccjsunit/index' describe('assertFalse', function () { diff --git a/demo/hjsunit/Assertion/entry/src/ohosTest/js/test/assertInstantceOf.test.js b/demo/hjsunit/Assertion/entry/src/ohosTest/js/test/assertInstantceOf.test.js index 8cad22cf833031588140135cc12735f939072fbf..8c41cbecaf2c859dd4f3e5830dab4d3c10dc3beb 100755 --- a/demo/hjsunit/Assertion/entry/src/ohosTest/js/test/assertInstantceOf.test.js +++ b/demo/hjsunit/Assertion/entry/src/ohosTest/js/test/assertInstantceOf.test.js @@ -1,3 +1,17 @@ +/* + * 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. + */ import {describe, it, expect} from 'deccjsunit/index' describe('assertInstanceOf', function () { diff --git a/demo/hjsunit/Assertion/entry/src/ohosTest/js/test/assertLarger.test.js b/demo/hjsunit/Assertion/entry/src/ohosTest/js/test/assertLarger.test.js index b2eca31ca09d54c30e900bd1ae67fba0e46f9904..48de09018de0968fd39b7b2402042afc95fb3d63 100755 --- a/demo/hjsunit/Assertion/entry/src/ohosTest/js/test/assertLarger.test.js +++ b/demo/hjsunit/Assertion/entry/src/ohosTest/js/test/assertLarger.test.js @@ -1,3 +1,17 @@ +/* + * 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. + */ import {describe, it, expect} from 'deccjsunit/index' describe('assertLarger', function () { diff --git a/demo/hjsunit/Assertion/entry/src/ohosTest/js/test/assertLess.test.js b/demo/hjsunit/Assertion/entry/src/ohosTest/js/test/assertLess.test.js index 930e0f8957046ece19fd66a7d622f8b88e116ff3..5e404524cdc6b69d65a22a1884542757f4901ed8 100755 --- a/demo/hjsunit/Assertion/entry/src/ohosTest/js/test/assertLess.test.js +++ b/demo/hjsunit/Assertion/entry/src/ohosTest/js/test/assertLess.test.js @@ -1,3 +1,17 @@ +/* + * 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. + */ import {describe, it, expect} from 'deccjsunit/index' describe('assertLess', function () { diff --git a/demo/hjsunit/Assertion/entry/src/ohosTest/js/test/assertNull.test.js b/demo/hjsunit/Assertion/entry/src/ohosTest/js/test/assertNull.test.js index 60d7078eb3efd1eeb9ee828e39c94f5e2829f2de..0e774c6edbfe8a8c763bfbc2d6e9fa0f98f31ba7 100755 --- a/demo/hjsunit/Assertion/entry/src/ohosTest/js/test/assertNull.test.js +++ b/demo/hjsunit/Assertion/entry/src/ohosTest/js/test/assertNull.test.js @@ -1,3 +1,17 @@ +/* + * 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. + */ import {describe, it, expect} from 'deccjsunit/index' describe('assertNull', function () { diff --git a/demo/hjsunit/Assertion/entry/src/ohosTest/js/test/assertThrowError.test.js b/demo/hjsunit/Assertion/entry/src/ohosTest/js/test/assertThrowError.test.js index eaee8b518800eb99619b851a2dce7b223dd6f3b4..7aba149a470d80a8d340d8fc9f857008eff0bb4e 100755 --- a/demo/hjsunit/Assertion/entry/src/ohosTest/js/test/assertThrowError.test.js +++ b/demo/hjsunit/Assertion/entry/src/ohosTest/js/test/assertThrowError.test.js @@ -1,3 +1,17 @@ +/* + * 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. + */ import {describe, it, expect} from 'deccjsunit/index' describe('assertThrowError', function () { diff --git a/demo/hjsunit/Assertion/entry/src/ohosTest/js/test/assertUndefined.test.js b/demo/hjsunit/Assertion/entry/src/ohosTest/js/test/assertUndefined.test.js index e2fff4d6ee2660880e89152db860d766a86810cb..3c00a513c85eff8e8af56a366e1c2a8f86fa15c5 100755 --- a/demo/hjsunit/Assertion/entry/src/ohosTest/js/test/assertUndefined.test.js +++ b/demo/hjsunit/Assertion/entry/src/ohosTest/js/test/assertUndefined.test.js @@ -1,3 +1,17 @@ +/* + * 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. + */ import {describe, it, expect} from 'deccjsunit/index' describe('assertUndefined', function () { diff --git a/demo/hjsunit/Async/entry/src/main/java/com/example/async/MainAbility.java b/demo/hjsunit/Async/entry/src/main/java/com/example/async/MainAbility.java deleted file mode 100755 index 95892cbcd195827ff583fce1bcb9d71ae79f0852..0000000000000000000000000000000000000000 --- a/demo/hjsunit/Async/entry/src/main/java/com/example/async/MainAbility.java +++ /dev/null @@ -1,16 +0,0 @@ -package com.example.async; - -import ohos.ace.ability.AceAbility; -import ohos.aafwk.content.Intent; - -public class MainAbility extends AceAbility { - @Override - public void onStart(Intent intent) { - super.onStart(intent); - } - - @Override - public void onStop() { - super.onStop(); - } -} diff --git a/demo/hjsunit/Async/entry/src/main/java/com/example/async/MyApplication.java b/demo/hjsunit/Async/entry/src/main/java/com/example/async/MyApplication.java deleted file mode 100755 index 7efaa006958fa38ecbd3d6c9e4ffd17be4fb33a7..0000000000000000000000000000000000000000 --- a/demo/hjsunit/Async/entry/src/main/java/com/example/async/MyApplication.java +++ /dev/null @@ -1,10 +0,0 @@ -package com.example.async; - -import ohos.aafwk.ability.AbilityPackage; - -public class MyApplication extends AbilityPackage { - @Override - public void onInitialize() { - super.onInitialize(); - } -} diff --git a/demo/hjsunit/Async/entry/src/main/js/default/app.js b/demo/hjsunit/Async/entry/src/main/js/default/app.js index aedcefe0054c6e16c40491f4d1abc20a4dc1c6ef..4b241cccbaa71f0c5cbd9e7dc437a0feb224c7d5 100755 --- a/demo/hjsunit/Async/entry/src/main/js/default/app.js +++ b/demo/hjsunit/Async/entry/src/main/js/default/app.js @@ -1,3 +1,17 @@ +/* + * 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. + */ export default { onCreate() { console.info('AceApplication onCreate'); diff --git a/demo/hjsunit/Async/entry/src/main/js/default/pages/index/index.js b/demo/hjsunit/Async/entry/src/main/js/default/pages/index/index.js index 8a7eec535cfd04ee1c54e23dc2d1074f889d2763..49eb46a053db5a2da9542526b61eed164fa44d26 100755 --- a/demo/hjsunit/Async/entry/src/main/js/default/pages/index/index.js +++ b/demo/hjsunit/Async/entry/src/main/js/default/pages/index/index.js @@ -1,3 +1,17 @@ +/* + * 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. + */ export default { data: { title: "" diff --git a/demo/hjsunit/Async/entry/src/ohosTest/java/com/example/async/ExampleOhosTest.java b/demo/hjsunit/Async/entry/src/ohosTest/java/com/example/async/ExampleOhosTest.java deleted file mode 100755 index e478b5e18eb0b28fa504e703c43318d915e5dd5d..0000000000000000000000000000000000000000 --- a/demo/hjsunit/Async/entry/src/ohosTest/java/com/example/async/ExampleOhosTest.java +++ /dev/null @@ -1,14 +0,0 @@ -package com.example.async; - -import ohos.aafwk.ability.delegation.AbilityDelegatorRegistry; -import org.junit.Test; - -import static org.junit.Assert.assertEquals; - -public class ExampleOhosTest { - @Test - public void testBundleName() { - final String actualBundleName = AbilityDelegatorRegistry.getArguments().getTestBundleName(); - assertEquals("com.example.async", actualBundleName); - } -} \ No newline at end of file diff --git a/demo/hjsunit/Async/entry/src/ohosTest/js/default/app.js b/demo/hjsunit/Async/entry/src/ohosTest/js/default/app.js index 55b67e96deb821033f71d30b6fff05efdeb0d901..044bffa75e29d7a5fe32644e19cc1bbbc5e9a7b1 100755 --- a/demo/hjsunit/Async/entry/src/ohosTest/js/default/app.js +++ b/demo/hjsunit/Async/entry/src/ohosTest/js/default/app.js @@ -1,3 +1,17 @@ +/* + * 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. + */ export default { onCreate() { console.info('TestApplication onCreate'); diff --git a/demo/hjsunit/Async/entry/src/ohosTest/js/default/pages/index/index.js b/demo/hjsunit/Async/entry/src/ohosTest/js/default/pages/index/index.js index 8be2df2479a8da755ed800ad70d2b6247e21b8a2..793667c97f947fdfc22f424847e85718bad72c49 100755 --- a/demo/hjsunit/Async/entry/src/ohosTest/js/default/pages/index/index.js +++ b/demo/hjsunit/Async/entry/src/ohosTest/js/default/pages/index/index.js @@ -1,3 +1,17 @@ +/* + * 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. + */ import file from '@system.file' import app from '@system.app' import device from '@system.device' diff --git a/demo/hjsunit/Async/entry/src/ohosTest/js/test/Callback.test.js b/demo/hjsunit/Async/entry/src/ohosTest/js/test/Callback.test.js index ba9c23c51d779ba82fb9240db409b8fa94a38481..6b95d985aa91a130b816932fb55ea7fbe8c9beed 100755 --- a/demo/hjsunit/Async/entry/src/ohosTest/js/test/Callback.test.js +++ b/demo/hjsunit/Async/entry/src/ohosTest/js/test/Callback.test.js @@ -1,3 +1,17 @@ +/* + * 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. + */ import {describe, it} from 'deccjsunit/index' describe('callback', function () { diff --git a/demo/hjsunit/Async/entry/src/ohosTest/js/test/List.test.js b/demo/hjsunit/Async/entry/src/ohosTest/js/test/List.test.js index 22d893e68e7167a85df95e82cfc8a4a9a04dc240..e397df520f9e3dac80fe8bf7498c68e6379de420 100755 --- a/demo/hjsunit/Async/entry/src/ohosTest/js/test/List.test.js +++ b/demo/hjsunit/Async/entry/src/ohosTest/js/test/List.test.js @@ -1,2 +1,16 @@ +/* + * 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. + */ require('./Callback.test.js') require('./Promise.test.js') \ No newline at end of file diff --git a/demo/hjsunit/Async/entry/src/ohosTest/js/test/Promise.test.js b/demo/hjsunit/Async/entry/src/ohosTest/js/test/Promise.test.js index 95a26e595726965d1628db83dbc25376cbb738f7..785f3e87792b1fc7e40c90a41f3c90b4bbeb0739 100755 --- a/demo/hjsunit/Async/entry/src/ohosTest/js/test/Promise.test.js +++ b/demo/hjsunit/Async/entry/src/ohosTest/js/test/Promise.test.js @@ -1,3 +1,17 @@ +/* + * 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. + */ import {describe, it} from 'deccjsunit/index' describe('promise', function () { diff --git a/demo/hjsunit/DataDriver/entry/src/main/java/com/example/datadriver/MainAbility.java b/demo/hjsunit/DataDriver/entry/src/main/java/com/example/datadriver/MainAbility.java deleted file mode 100755 index 1b674eba7b3c54d8c33d1fb54747a021e29f1359..0000000000000000000000000000000000000000 --- a/demo/hjsunit/DataDriver/entry/src/main/java/com/example/datadriver/MainAbility.java +++ /dev/null @@ -1,16 +0,0 @@ -package com.example.datadriver; - -import ohos.ace.ability.AceAbility; -import ohos.aafwk.content.Intent; - -public class MainAbility extends AceAbility { - @Override - public void onStart(Intent intent) { - super.onStart(intent); - } - - @Override - public void onStop() { - super.onStop(); - } -} diff --git a/demo/hjsunit/DataDriver/entry/src/main/java/com/example/datadriver/MyApplication.java b/demo/hjsunit/DataDriver/entry/src/main/java/com/example/datadriver/MyApplication.java deleted file mode 100755 index 897f67aa15a3808cd8896fb6cdf12b82dd9f1ac4..0000000000000000000000000000000000000000 --- a/demo/hjsunit/DataDriver/entry/src/main/java/com/example/datadriver/MyApplication.java +++ /dev/null @@ -1,10 +0,0 @@ -package com.example.datadriver; - -import ohos.aafwk.ability.AbilityPackage; - -public class MyApplication extends AbilityPackage { - @Override - public void onInitialize() { - super.onInitialize(); - } -} diff --git a/demo/hjsunit/DataDriver/entry/src/main/js/default/app.js b/demo/hjsunit/DataDriver/entry/src/main/js/default/app.js index aedcefe0054c6e16c40491f4d1abc20a4dc1c6ef..4b241cccbaa71f0c5cbd9e7dc437a0feb224c7d5 100755 --- a/demo/hjsunit/DataDriver/entry/src/main/js/default/app.js +++ b/demo/hjsunit/DataDriver/entry/src/main/js/default/app.js @@ -1,3 +1,17 @@ +/* + * 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. + */ export default { onCreate() { console.info('AceApplication onCreate'); diff --git a/demo/hjsunit/DataDriver/entry/src/main/js/default/pages/index/index.js b/demo/hjsunit/DataDriver/entry/src/main/js/default/pages/index/index.js index 8a7eec535cfd04ee1c54e23dc2d1074f889d2763..49eb46a053db5a2da9542526b61eed164fa44d26 100755 --- a/demo/hjsunit/DataDriver/entry/src/main/js/default/pages/index/index.js +++ b/demo/hjsunit/DataDriver/entry/src/main/js/default/pages/index/index.js @@ -1,3 +1,17 @@ +/* + * 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. + */ export default { data: { title: "" diff --git a/demo/hjsunit/DataDriver/entry/src/ohosTest/java/com/example/datadriver/ExampleOhosTest.java b/demo/hjsunit/DataDriver/entry/src/ohosTest/java/com/example/datadriver/ExampleOhosTest.java deleted file mode 100755 index 0bba099e1fe231bca959f0b4a00afe345dfa792c..0000000000000000000000000000000000000000 --- a/demo/hjsunit/DataDriver/entry/src/ohosTest/java/com/example/datadriver/ExampleOhosTest.java +++ /dev/null @@ -1,14 +0,0 @@ -package com.example.datadriver; - -import ohos.aafwk.ability.delegation.AbilityDelegatorRegistry; -import org.junit.Test; - -import static org.junit.Assert.assertEquals; - -public class ExampleOhosTest { - @Test - public void testBundleName() { - final String actualBundleName = AbilityDelegatorRegistry.getArguments().getTestBundleName(); - assertEquals("com.example.datadriver", actualBundleName); - } -} \ No newline at end of file diff --git a/demo/hjsunit/DataDriver/entry/src/ohosTest/js/default/app.js b/demo/hjsunit/DataDriver/entry/src/ohosTest/js/default/app.js index 55b67e96deb821033f71d30b6fff05efdeb0d901..044bffa75e29d7a5fe32644e19cc1bbbc5e9a7b1 100755 --- a/demo/hjsunit/DataDriver/entry/src/ohosTest/js/default/app.js +++ b/demo/hjsunit/DataDriver/entry/src/ohosTest/js/default/app.js @@ -1,3 +1,17 @@ +/* + * 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. + */ export default { onCreate() { console.info('TestApplication onCreate'); diff --git a/demo/hjsunit/DataDriver/entry/src/ohosTest/js/default/pages/index/index.js b/demo/hjsunit/DataDriver/entry/src/ohosTest/js/default/pages/index/index.js index 18d416bc48d9c22a8ec5d229a72feec4b3f471fb..4ada57fb31e4c492c605ec5a827878a01bc0cc10 100755 --- a/demo/hjsunit/DataDriver/entry/src/ohosTest/js/default/pages/index/index.js +++ b/demo/hjsunit/DataDriver/entry/src/ohosTest/js/default/pages/index/index.js @@ -1,4 +1,17 @@ -// @ts-nocheck +/* + * 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. + */ import file from '@system.file' import app from '@system.app' import device from '@system.device' diff --git a/demo/hjsunit/DataDriver/entry/src/ohosTest/js/test/DataDriver.test.js b/demo/hjsunit/DataDriver/entry/src/ohosTest/js/test/DataDriver.test.js index c26e4a8d15b6537f36bd468bfca99acb5f87590b..a7c331fddc5bfc901302a63e93b7fc3ea1d4b67e 100755 --- a/demo/hjsunit/DataDriver/entry/src/ohosTest/js/test/DataDriver.test.js +++ b/demo/hjsunit/DataDriver/entry/src/ohosTest/js/test/DataDriver.test.js @@ -1,3 +1,17 @@ +/* + * 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. + */ import {describe, it, expect} from 'deccjsunit/index' describe('testSuite01', function () { diff --git a/demo/hjsunit/DataDriver/entry/src/ohosTest/js/test/List.test.js b/demo/hjsunit/DataDriver/entry/src/ohosTest/js/test/List.test.js index 8ed7c51f5c5f0cf6e2488cf8b87e60447b6f7002..ee629d2674217d3e6f2beb14661afe07ce140ce4 100755 --- a/demo/hjsunit/DataDriver/entry/src/ohosTest/js/test/List.test.js +++ b/demo/hjsunit/DataDriver/entry/src/ohosTest/js/test/List.test.js @@ -1 +1,15 @@ +/* + * 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. + */ require('./DataDriver.test.js') \ No newline at end of file