Skip to content

Commit

Permalink
chore: 文件添加协议头,以及更改测试包路径
Browse files Browse the repository at this point in the history
  • Loading branch information
zxuanhong committed Jun 24, 2024
1 parent ff15f58 commit a6b0864
Show file tree
Hide file tree
Showing 9 changed files with 159 additions and 63 deletions.
Original file line number Diff line number Diff line change
@@ -1,3 +1,19 @@
/*
* 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 com.anyilanxin.plugin.easycode.dict.GlobalDict;
Expand Down
31 changes: 31 additions & 0 deletions src/test/java/com/anyilanxin/plugin/easycode/MinTest.java
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() {

}
}
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);
}
}
Original file line number Diff line number Diff line change
@@ -1,3 +1,19 @@
/*
* 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;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,19 @@
/*
* 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.GlobalConfig;
Expand Down
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);
}

}
15 changes: 0 additions & 15 deletions src/test/java/com/sjhy/plugin/MinTest.java

This file was deleted.

26 changes: 0 additions & 26 deletions src/test/java/com/sjhy/plugin/tool/CloneUtilsTest.java

This file was deleted.

22 changes: 0 additions & 22 deletions src/test/java/com/sjhy/plugin/tool/ToUnicodeTest.java

This file was deleted.

0 comments on commit a6b0864

Please sign in to comment.