-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
9 changed files
with
159 additions
and
63 deletions.
There are no files selected for viewing
16 changes: 16 additions & 0 deletions
16
...jhy/plugin/GenerateDefaultConfigTest.java → ...n/easycode/GenerateDefaultConfigTest.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
/* | ||
* Copyright (c) 2018 makejava The MIT License (MIT) | ||
* Copyright © 2024 anyilanxin xuanhongzhou(anyilanxin@aliyun.com) | ||
* | ||
* 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.anyilanxin.plugin.easycode; | ||
|
||
import org.junit.Test; | ||
|
||
/** | ||
* @author makejava | ||
* @version 1.0.0 | ||
* @since 2018/07/18 17:35 | ||
*/ | ||
public class MinTest { | ||
@Test | ||
public void run() { | ||
|
||
} | ||
} |
42 changes: 42 additions & 0 deletions
42
src/test/java/com/anyilanxin/plugin/easycode/tool/CloneUtilsTest.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
/* | ||
* Copyright (c) 2018 makejava The MIT License (MIT) | ||
* Copyright © 2024 anyilanxin xuanhongzhou(anyilanxin@aliyun.com) | ||
* | ||
* 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.anyilanxin.plugin.easycode.tool; | ||
|
||
import com.anyilanxin.plugin.easycode.entity.TableInfo; | ||
import org.junit.Test; | ||
|
||
import static org.junit.Assert.assertEquals; | ||
import static org.junit.Assert.assertNotSame; | ||
|
||
/** | ||
* 克隆工具类测试用例 | ||
* | ||
* @author makejava | ||
* @version 1.0.0 | ||
* @since 2018/09/02 14:11 | ||
*/ | ||
public class CloneUtilsTest { | ||
|
||
@Test | ||
public void cloneByJson() { | ||
TableInfo tableInfo = new TableInfo(); | ||
tableInfo.setComment("Hello World!"); | ||
TableInfo newTableInfo = CloneUtils.cloneByJson(tableInfo, false); | ||
assertNotSame(tableInfo, newTableInfo); | ||
assertEquals(tableInfo, newTableInfo); | ||
} | ||
} |
16 changes: 16 additions & 0 deletions
16
.../com/sjhy/plugin/tool/GlobalToolTest.java → .../plugin/easycode/tool/GlobalToolTest.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
16 changes: 16 additions & 0 deletions
16
...m/sjhy/plugin/tool/TemplateUtilsTest.java → ...ugin/easycode/tool/TemplateUtilsTest.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
38 changes: 38 additions & 0 deletions
38
src/test/java/com/anyilanxin/plugin/easycode/tool/ToUnicodeTest.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
/* | ||
* Copyright (c) 2018 makejava The MIT License (MIT) | ||
* Copyright © 2024 anyilanxin xuanhongzhou(anyilanxin@aliyun.com) | ||
* | ||
* 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.anyilanxin.plugin.easycode.tool; | ||
|
||
import org.junit.Assert; | ||
import org.junit.Test; | ||
|
||
/** | ||
* ToUnicodeTest 类 | ||
* | ||
* @author czb 2019/11/11 9:43 | ||
* @version 1.0 | ||
**/ | ||
public class ToUnicodeTest { | ||
|
||
@Test | ||
public void toUnicode() { | ||
GlobalTool tool = GlobalTool.getInstance(); | ||
String out; | ||
System.out.println(out = tool.toUnicode("金融机构,Finance organization{0},!")); | ||
Assert.assertEquals("\\u91d1\\u878d\\u673a\\u6784\\uff0cFinance organization{0},\\uff01", out); | ||
} | ||
|
||
} |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.