-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #57 from tvd12/master
release version 1.2.7
- Loading branch information
Showing
6 changed files
with
51 additions
and
2 deletions.
There are no files selected for viewing
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
15 changes: 15 additions & 0 deletions
15
src/main/java/com/tvd12/ezyfox/core/entities/ApiLoggable.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,15 @@ | ||
package com.tvd12.ezyfox.core.entities; | ||
|
||
import org.slf4j.Logger; | ||
import org.slf4j.LoggerFactory; | ||
|
||
public class ApiLoggable { | ||
|
||
private Logger logger = | ||
LoggerFactory.getLogger(getClass()); | ||
|
||
protected Logger getLogger() { | ||
return logger; | ||
} | ||
|
||
} |
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
20 changes: 20 additions & 0 deletions
20
src/test/java/com/tvd12/ezyfox/core/testing/entities/ApiLoggableTest.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,20 @@ | ||
package com.tvd12.ezyfox.core.testing.entities; | ||
|
||
import org.testng.annotations.Test; | ||
|
||
import com.tvd12.ezyfox.core.entities.ApiLoggable; | ||
import com.tvd12.test.base.BaseTest; | ||
import com.tvd12.test.reflect.MethodInvoker; | ||
|
||
public class ApiLoggableTest extends BaseTest { | ||
|
||
@Test | ||
public void test() { | ||
ApiLoggable loggable = new ApiLoggable(); | ||
MethodInvoker.create() | ||
.method("getLogger") | ||
.object(loggable) | ||
.invoke(); | ||
} | ||
|
||
} |
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