-
Notifications
You must be signed in to change notification settings - Fork 4.7k
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 #945 from dmgcodevil/javanica-iss-907
Javanica iss 907
- Loading branch information
Showing
45 changed files
with
2,186 additions
and
1,235 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
21 changes: 21 additions & 0 deletions
21
...a/src/ajcTest/java/com/netflix/hystrix/contrib/javanica/test/aspectj/cache/CacheTest.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,21 @@ | ||
package com.netflix.hystrix.contrib.javanica.test.aspectj.cache; | ||
|
||
import com.netflix.hystrix.contrib.javanica.test.common.cache.BasicCacheTest; | ||
import org.junit.BeforeClass; | ||
|
||
/** | ||
* Created by dmgcodevil | ||
*/ | ||
public class CacheTest extends BasicCacheTest { | ||
@BeforeClass | ||
public static void setUpEnv() { | ||
System.setProperty("weavingMode", "compile"); | ||
} | ||
|
||
@Override | ||
protected UserService createUserService() { | ||
UserService userService = new UserService(); | ||
userService.init(); | ||
return userService; | ||
} | ||
} |
19 changes: 19 additions & 0 deletions
19
...cTest/java/com/netflix/hystrix/contrib/javanica/test/aspectj/collapser/CollapserTest.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,19 @@ | ||
package com.netflix.hystrix.contrib.javanica.test.aspectj.collapser; | ||
|
||
import com.netflix.hystrix.contrib.javanica.test.common.collapser.BasicCollapserTest; | ||
import org.junit.BeforeClass; | ||
|
||
/** | ||
* Created by dmgcodevil | ||
*/ | ||
public class CollapserTest extends BasicCollapserTest { | ||
@BeforeClass | ||
public static void setUpEnv() { | ||
System.setProperty("weavingMode", "compile"); | ||
} | ||
|
||
@Override | ||
protected UserService createUserService() { | ||
return new UserService(); | ||
} | ||
} |
23 changes: 23 additions & 0 deletions
23
...c/ajcTest/java/com/netflix/hystrix/contrib/javanica/test/aspectj/command/CommandTest.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,23 @@ | ||
package com.netflix.hystrix.contrib.javanica.test.aspectj.command; | ||
|
||
import com.netflix.hystrix.contrib.javanica.test.common.command.BasicCommandTest; | ||
import org.junit.BeforeClass; | ||
|
||
|
||
public class CommandTest extends BasicCommandTest { | ||
|
||
@BeforeClass | ||
public static void setUpEnv(){ | ||
System.setProperty("weavingMode", "compile"); | ||
} | ||
|
||
@Override | ||
protected UserService createUserService() { | ||
return new UserService(); | ||
} | ||
|
||
@Override | ||
protected AdvancedUserService createAdvancedUserServiceService() { | ||
return new AdvancedUserService(); | ||
} | ||
} |
20 changes: 20 additions & 0 deletions
20
...ystrix/contrib/javanica/test/aspectj/configuration/collapser/CollapserPropertiesTest.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.netflix.hystrix.contrib.javanica.test.aspectj.configuration.collapser; | ||
|
||
import com.netflix.hystrix.contrib.javanica.test.common.configuration.collapser.BasicCollapserPropertiesTest; | ||
import org.junit.BeforeClass; | ||
|
||
/** | ||
* Created by dmgcodevil | ||
*/ | ||
public class CollapserPropertiesTest extends BasicCollapserPropertiesTest { | ||
|
||
@BeforeClass | ||
public static void setUpEnv() { | ||
System.setProperty("weavingMode", "compile"); | ||
} | ||
|
||
@Override | ||
protected UserService createUserService() { | ||
return new UserService(); | ||
} | ||
} |
20 changes: 20 additions & 0 deletions
20
...ix/hystrix/contrib/javanica/test/aspectj/configuration/command/CommandPropertiesTest.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.netflix.hystrix.contrib.javanica.test.aspectj.configuration.command; | ||
|
||
import com.netflix.hystrix.contrib.javanica.test.common.configuration.command.BasicCommandPropertiesTest; | ||
import org.junit.BeforeClass; | ||
|
||
/** | ||
* Created by dmgcodevil | ||
*/ | ||
public class CommandPropertiesTest extends BasicCommandPropertiesTest { | ||
|
||
@BeforeClass | ||
public static void setUpEnv() { | ||
System.setProperty("weavingMode", "compile"); | ||
} | ||
|
||
@Override | ||
protected UserService createUserService() { | ||
return new UserService(); | ||
} | ||
} |
21 changes: 21 additions & 0 deletions
21
...st/java/com/netflix/hystrix/contrib/javanica/test/aspectj/error/ErrorPropagationTest.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,21 @@ | ||
package com.netflix.hystrix.contrib.javanica.test.aspectj.error; | ||
|
||
import com.netflix.hystrix.contrib.javanica.test.common.error.BasicErrorPropagationTest; | ||
import org.junit.BeforeClass; | ||
|
||
/** | ||
* Created by dmgcodevil | ||
*/ | ||
public class ErrorPropagationTest extends BasicErrorPropagationTest { | ||
|
||
@BeforeClass | ||
public static void setUpEnv() { | ||
System.setProperty("weavingMode", "compile"); | ||
} | ||
|
||
@Override | ||
protected UserService createUserService() { | ||
return new UserService(); | ||
} | ||
|
||
} |
20 changes: 20 additions & 0 deletions
20
.../java/com/netflix/hystrix/contrib/javanica/test/aspectj/fallback/CommandFallbackTest.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.netflix.hystrix.contrib.javanica.test.aspectj.fallback; | ||
|
||
import com.netflix.hystrix.contrib.javanica.test.common.fallback.BasicCommandFallbackTest; | ||
import org.junit.BeforeClass; | ||
|
||
/** | ||
* Created by dmgcodevil | ||
*/ | ||
public class CommandFallbackTest extends BasicCommandFallbackTest { | ||
|
||
@BeforeClass | ||
public static void setUpEnv() { | ||
System.setProperty("weavingMode", "compile"); | ||
} | ||
|
||
@Override | ||
protected UserService createUserService() { | ||
return new UserService(); | ||
} | ||
} |
20 changes: 20 additions & 0 deletions
20
...est/java/com/netflix/hystrix/contrib/javanica/test/aspectj/observable/ObservableTest.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.netflix.hystrix.contrib.javanica.test.aspectj.observable; | ||
|
||
import com.netflix.hystrix.contrib.javanica.test.common.observable.BasicObservableTest; | ||
import org.junit.BeforeClass; | ||
|
||
/** | ||
* Created by dmgcodevil | ||
*/ | ||
public class ObservableTest extends BasicObservableTest { | ||
|
||
@BeforeClass | ||
public static void setUpEnv() { | ||
System.setProperty("weavingMode", "compile"); | ||
} | ||
|
||
@Override | ||
protected UserService createUserService() { | ||
return new UserService(); | ||
} | ||
} |
Empty file.
10 changes: 10 additions & 0 deletions
10
hystrix-contrib/hystrix-javanica/src/ajcTest/resources/log4j.properties
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,10 @@ | ||
# Define the root logger with appender console | ||
log4j.rootLogger = ERROR, CONSOLE | ||
|
||
# Define the console appender | ||
log4j.appender.CONSOLE=org.apache.log4j.ConsoleAppender | ||
log4j.appender.CONSOLE.File=${log}/log.out | ||
|
||
# Define the layout for console appender | ||
log4j.appender.CONSOLE.layout=org.apache.log4j.PatternLayout | ||
log4j.appender.CONSOLE.layout.conversionPattern=%m%n |
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
Oops, something went wrong.