Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
J
javaazureappconfig
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Jalaluddin Shaikh
javaazureappconfig
Commits
09eb3a63
Commit
09eb3a63
authored
Mar 22, 2020
by
Jalaluddin Shaikh
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added Log4J dependencies for testing.
parent
48808613
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
26 additions
and
12 deletions
+26
-12
JavaAzureAppConfigApplicationTest.java
...t/java/com/example/JavaAzureAppConfigApplicationTest.java
+10
-12
log4j2-test.xml
src/test/resources/log4j2-test.xml
+16
-0
No files found.
src/test/java/com/example/JavaAzureAppConfigApplicationTest.java
View file @
09eb3a63
package
com
.
example
;
import
org.junit.Test
;
import
org.slf4j.Logger
;
import
org.slf4j.LoggerFactory
;
import
static
org
.
junit
.
Assert
.
assertTrue
;
import
org.junit.Test
;
public
class
JavaAzureAppConfigApplicationTest
{
private
static
final
Logger
LOGGER
=
LoggerFactory
.
getLogger
(
JavaAzureAppConfigApplicationTest
.
class
);
/**
* Unit test for simple App.
*/
public
class
JavaAzureAppConfigApplicationTest
{
/**
* Rigorous Test :-)
*/
@Test
public
void
shouldAnswerWithTrue
()
{
assertTrue
(
true
);
public
void
shouldAnswerWithTrue
()
{
LOGGER
.
info
(
"Testing"
);
assertTrue
(
true
);
}
}
src/test/resources/log4j2-test.xml
0 → 100644
View file @
09eb3a63
<?xml version="1.0" encoding="UTF-8"?>
<Configuration
status=
"WARN"
>
<Appenders>
<Console
name=
"Console"
target=
"SYSTEM_OUT"
>
<PatternLayout
pattern=
"%d{yyyy-MM-dd HH:mm:ss.SSS} [%t] %-5level [%logger{1}: %L] - %msg%n"
/>
</Console>
</Appenders>
<Loggers>
<Logger
name=
"com.example"
level=
"debug"
additivity=
"false"
>
<AppenderRef
ref=
"Console"
/>
</Logger>
<Root
level=
"warn"
>
<AppenderRef
ref=
"Console"
/>
</Root>
</Loggers>
</Configuration>
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment