-
Notifications
You must be signed in to change notification settings - Fork 212
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
b80d6b5
commit 4b77cf9
Showing
23 changed files
with
105 additions
and
121 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
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
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
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
This file was deleted.
Oops, something went wrong.
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,38 @@ | ||
package app.groovy; | ||
|
||
import com.oath.micro.server.MicroserverApp; | ||
import com.oath.micro.server.auto.discovery.Rest; | ||
import com.oath.micro.server.config.Microserver; | ||
import com.oath.micro.server.module.Module; | ||
//import groovy.lang.Closure; | ||
//import org.codehaus.groovy.runtime.DefaultGroovyMethods; | ||
|
||
import javax.ws.rs.GET; | ||
import javax.ws.rs.Path; | ||
import javax.ws.rs.Produces; | ||
import java.util.List; | ||
|
||
@Rest | ||
@Path("/status") | ||
@Microserver | ||
public class StatusGroovy { | ||
public static void main(String[] args) { | ||
/** | ||
List<Thread> app = new MicroserverApp(StatusGroovy.class, DefaultGroovyMethods.asType(new Closure<String>(null, null) { | ||
public String doCall() { | ||
return "status-app"; | ||
} | ||
}, Module.class)).start(); | ||
**/ | ||
|
||
} | ||
|
||
@GET | ||
@Produces("text/plain") | ||
@Path("/ping") | ||
public String respondToPing() { | ||
return "pong!"; | ||
} | ||
|
||
} |
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
35 changes: 0 additions & 35 deletions
35
...est/java/com/oath/micro/server/machine/stats/sigar/StatsServletContextListenerTest.groovy
This file was deleted.
Oops, something went wrong.
30 changes: 30 additions & 0 deletions
30
.../test/java/com/oath/micro/server/machine/stats/sigar/StatsServletContextListenerTest.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,30 @@ | ||
package com.oath.micro.server.machine.stats.sigar; | ||
|
||
import org.hamcrest.Matchers; | ||
import org.junit.Assert; | ||
import org.junit.Before; | ||
import org.junit.Test; | ||
import org.mockito.Mockito; | ||
|
||
import javax.servlet.ServletContext; | ||
import javax.servlet.ServletContextEvent; | ||
|
||
public class StatsServletContextListenerTest { | ||
@Before | ||
public void setUp() { | ||
sce = Mockito.mock(ServletContextEvent.class); | ||
servletContext = Mockito.mock(ServletContext.class); | ||
contextListener = new StatsServletContextListener(); | ||
} | ||
|
||
@Test | ||
public void testGrizzly() { | ||
contextListener.contextInitialized(sce); | ||
Assert.assertThat(System.getProperty("java.library.path"), Matchers.is(System.getProperty("user.dir") + "/sigar-lib")); | ||
contextListener.contextDestroyed(sce); | ||
} | ||
|
||
private StatsServletContextListener contextListener; | ||
private ServletContextEvent sce; | ||
private ServletContext servletContext; | ||
} |
26 changes: 0 additions & 26 deletions
26
.../java/com/oath/micro/server/mysql/distlock/DistributedLockServiceConfigurationTest.groovy
This file was deleted.
Oops, something went wrong.
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
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
5 changes: 3 additions & 2 deletions
5
micro-reactive/src/test/java/app/bus/com/aol/micro/server/MyQueueFactoryConfig.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
5 changes: 3 additions & 2 deletions
5
micro-reactive/src/test/java/app/streaming/com/aol/micro/server/MyQueueFactoryConfig.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
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
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