-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
support mock proto bean && adjust sample package
- Loading branch information
Showing
128 changed files
with
678 additions
and
534 deletions.
There are no files selected for viewing
File renamed without changes.
2 changes: 1 addition & 1 deletion
2
.../jitwxs/easydata/sample/bean/Friends.java → .../easydata/sample/sample/bean/Friends.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
2 changes: 1 addition & 1 deletion
2
...s/easydata/sample/bean/OrderEvaluate.java → ...ata/sample/sample/bean/OrderEvaluate.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
4 changes: 2 additions & 2 deletions
4
.../jitwxs/easydata/sample/bean/Student.java → .../easydata/sample/sample/bean/Student.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
4 changes: 2 additions & 2 deletions
4
...jitwxs/easydata/sample/bean/Student2.java → ...easydata/sample/sample/bean/Student2.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
2 changes: 1 addition & 1 deletion
2
...jitwxs/easydata/sample/bean/UserInfo.java → ...easydata/sample/sample/bean/UserInfo.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
4 changes: 2 additions & 2 deletions
4
...wxs/easydata/sample/bean/WebsiteUser.java → ...ydata/sample/sample/bean/WebsiteUser.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
8 changes: 4 additions & 4 deletions
8
.../sample/convert/OrderEvaluateConvert.java → .../sample/convert/OrderEvaluateConvert.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 |
---|---|---|
@@ -1,8 +1,8 @@ | ||
package com.github.jitwxs.easydata.sample.convert; | ||
package com.github.jitwxs.easydata.sample.sample.convert; | ||
|
||
import com.github.jitwxs.easydata.sample.bean.OrderEvaluate; | ||
import com.github.jitwxs.easydata.sample.message.MessageProto; | ||
import com.github.jitwxs.easydata.sample.utils.TimeUtils; | ||
import com.github.jitwxs.easydata.sample.sample.bean.OrderEvaluate; | ||
import com.github.jitwxs.easydata.sample.sample.message.MessageProto; | ||
import com.github.jitwxs.easydata.sample.sample.utils.TimeUtils; | ||
|
||
/** | ||
* @author [email protected] | ||
|
2 changes: 1 addition & 1 deletion
2
...jitwxs/easydata/sample/enums/SexEnum.java → ...easydata/sample/sample/enums/SexEnum.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
2 changes: 1 addition & 1 deletion
2
...twxs/easydata/sample/utils/TimeUtils.java → ...sydata/sample/sample/utils/TimeUtils.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
22 changes: 0 additions & 22 deletions
22
easydata-sample/src/test/java/com/github/jitwxs/easydata/core/mock/MockTest.java
This file was deleted.
Oops, something went wrong.
4 changes: 2 additions & 2 deletions
4
...github/jitwxs/easydata/LoggerStarter.java → ...jitwxs/easydata/sample/LoggerStarter.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
12 changes: 6 additions & 6 deletions
12
...wxs/easydata/conn/BaseConnectionTest.java → ...ydata/sample/conn/BaseConnectionTest.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
4 changes: 2 additions & 2 deletions
4
...wxs/easydata/conn/FileConnectionTest.java → ...ydata/sample/conn/FileConnectionTest.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
4 changes: 2 additions & 2 deletions
4
...xs/easydata/conn/MySQLConnectionTest.java → ...data/sample/conn/MySQLConnectionTest.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
33 changes: 33 additions & 0 deletions
33
easydata-sample/src/test/java/com/github/jitwxs/easydata/sample/core/mock/EasyMockTest.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,33 @@ | ||
package com.github.jitwxs.easydata.sample.core.mock; | ||
|
||
import com.github.jitwxs.easydata.sample.sample.bean.OrderEvaluate; | ||
import com.github.jitwxs.easydata.sample.sample.enums.SexEnum; | ||
import com.github.jitwxs.easydata.sample.sample.message.EnumProto; | ||
import com.github.jitwxs.easydata.sample.sample.message.MessageProto; | ||
import org.junit.jupiter.api.Test; | ||
|
||
import static org.junit.jupiter.api.Assertions.assertNotNull; | ||
|
||
/** | ||
* @author [email protected] | ||
* @since 2022-03-20 17:10 | ||
*/ | ||
public class EasyMockTest { | ||
@Test | ||
public void testEnumMock() { | ||
final SexEnum mock1 = EasyMock.run(SexEnum.class); | ||
assertNotNull(mock1); | ||
|
||
final EnumProto.SexEnum mock2 = EasyMock.run(EnumProto.SexEnum.class); | ||
assertNotNull(mock2); | ||
} | ||
|
||
@Test | ||
public void testBeanMock() { | ||
final OrderEvaluate orderEvaluate = EasyMock.run(OrderEvaluate.class); | ||
assertNotNull(orderEvaluate); | ||
|
||
final MessageProto.OrderEvaluate orderEvaluate2 = EasyMock.run(MessageProto.OrderEvaluate.class); | ||
assertNotNull(orderEvaluate2); | ||
} | ||
} |
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: 8 additions & 8 deletions
16
...fy/NotSameSimpleClassITypeVerifyTest.java → ...fy/NotSameSimpleClassITypeVerifyTest.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
6 changes: 3 additions & 3 deletions
6
...data/core/verify/PrecisionVerifyTest.java → ...mple/core/verify/PrecisionVerifyTest.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
2 changes: 1 addition & 1 deletion
2
...asydata/provider/ConvertProviderTest.java → .../sample/provider/ConvertProviderTest.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
8 changes: 4 additions & 4 deletions
8
...easydata/sample/bean/WebsiteUserTest.java → ...a/sample/sample/bean/WebsiteUserTest.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 was deleted.
Oops, something went wrong.
Oops, something went wrong.