Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
apollo
Project
Overview
Details
Activity
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
openSource
apollo
Commits
22756eb0
Commit
22756eb0
authored
Apr 25, 2016
by
Jason Song
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #138 from yiming187/cat_update
exclude cat in client/config/admin/portal test
parents
5483c43f
4b1234df
Show whitespace changes
Inline
Side-by-side
Showing
16 changed files
with
182 additions
and
3 deletions
+182
-3
pom.xml
apollo-adminservice/pom.xml
+5
-0
plexus.xml
...dminservice/src/test/resources/META-INF/plexus/plexus.xml
+43
-0
pom.xml
apollo-buildtools/pom.xml
+6
-0
NullClientConfigManager.java
...in/java/com/ctrip/apollo/cat/NullClientConfigManager.java
+0
-0
NullLoggerManager.java
...src/main/java/com/ctrip/apollo/cat/NullLoggerManager.java
+0
-0
NullMessageManager.java
...rc/main/java/com/ctrip/apollo/cat/NullMessageManager.java
+17
-2
NullMessageProducer.java
...c/main/java/com/ctrip/apollo/cat/NullMessageProducer.java
+0
-0
NullTransportManager.java
.../main/java/com/ctrip/apollo/cat/NullTransportManager.java
+0
-0
pom.xml
apollo-client/pom.xml
+5
-0
RemoteConfigRepositoryTest.java
...om/ctrip/apollo/internals/RemoteConfigRepositoryTest.java
+0
-1
plexus.xml
apollo-client/src/test/resources/META-INF/plexus/plexus.xml
+5
-0
pom.xml
apollo-configservice/pom.xml
+5
-0
plexus.xml
...nfigservice/src/test/resources/META-INF/plexus/plexus.xml
+43
-0
pom.xml
apollo-portal/pom.xml
+5
-0
plexus.xml
apollo-portal/src/test/resources/META-INF/plexus/plexus.xml
+43
-0
pom.xml
pom.xml
+5
-0
No files found.
apollo-adminservice/pom.xml
View file @
22756eb0
...
...
@@ -19,6 +19,11 @@
<groupId>
com.ctrip.apollo
</groupId>
<artifactId>
apollo-biz
</artifactId>
</dependency>
<dependency>
<groupId>
com.ctrip.apollo
</groupId>
<artifactId>
apollo-buildtools
</artifactId>
<scope>
test
</scope>
</dependency>
<!-- end of apollo -->
<!-- eureka -->
<dependency>
...
...
apollo-adminservice/src/test/resources/META-INF/plexus/plexus.xml
0 → 100644
View file @
22756eb0
<plexus>
<components>
<component>
<role>
com.dianping.cat.configuration.ClientConfigManager
</role>
<implementation>
com.ctrip.apollo.cat.NullClientConfigManager
</implementation>
</component>
<component>
<role>
com.dianping.cat.message.io.TransportManager
</role>
<implementation>
com.ctrip.apollo.cat.NullTransportManager
</implementation>
</component>
<component>
<role>
com.dianping.cat.message.spi.MessageManager
</role>
<implementation>
com.ctrip.apollo.cat.NullMessageManager
</implementation>
<requirements>
<requirement>
<role>
com.dianping.cat.message.internal.MessageIdFactory
</role>
</requirement>
</requirements>
</component>
<component>
<role>
com.dianping.cat.message.MessageProducer
</role>
<implementation>
com.ctrip.apollo.cat.NullMessageProducer
</implementation>
<requirements>
<requirement>
<role>
com.dianping.cat.message.spi.MessageManager
</role>
</requirement>
<requirement>
<role>
com.dianping.cat.message.internal.MessageIdFactory
</role>
</requirement>
</requirements>
</component>
<component>
<role>
org.codehaus.plexus.logging.LoggerManager
</role>
<implementation>
com.ctrip.apollo.cat.NullLoggerManager
</implementation>
</component>
</components>
</plexus>
\ No newline at end of file
apollo-buildtools/pom.xml
View file @
22756eb0
...
...
@@ -13,4 +13,10 @@
<properties>
<github.path>
${project.artifactId}
</github.path>
</properties>
<dependencies>
<dependency>
<groupId>
com.dianping.cat
</groupId>
<artifactId>
cat-client
</artifactId>
</dependency>
</dependencies>
</project>
apollo-
client/src/test
/java/com/ctrip/apollo/cat/NullClientConfigManager.java
→
apollo-
buildtools/src/main
/java/com/ctrip/apollo/cat/NullClientConfigManager.java
View file @
22756eb0
File moved
apollo-
client/src/test
/java/com/ctrip/apollo/cat/NullLoggerManager.java
→
apollo-
buildtools/src/main
/java/com/ctrip/apollo/cat/NullLoggerManager.java
View file @
22756eb0
File moved
apollo-
client/src/test
/java/com/ctrip/apollo/cat/NullMessageManager.java
→
apollo-
buildtools/src/main
/java/com/ctrip/apollo/cat/NullMessageManager.java
View file @
22756eb0
package
com
.
ctrip
.
apollo
.
cat
;
import
java.io.IOException
;
import
org.codehaus.plexus.logging.LogEnabled
;
import
org.codehaus.plexus.logging.Logger
;
import
org.codehaus.plexus.personality.plexus.lifecycle.phase.Initializable
;
import
org.codehaus.plexus.personality.plexus.lifecycle.phase.InitializationException
;
import
org.unidal.lookup.ContainerHolder
;
import
org.unidal.lookup.annotation.Inject
;
import
com.dianping.cat.message.Message
;
import
com.dianping.cat.message.Transaction
;
import
com.dianping.cat.message.internal.MessageIdFactory
;
import
com.dianping.cat.message.spi.MessageManager
;
import
com.dianping.cat.message.spi.MessageTree
;
public
class
NullMessageManager
extends
ContainerHolder
implements
MessageManager
,
Initializable
,
LogEnabled
{
public
class
NullMessageManager
extends
ContainerHolder
implements
MessageManager
,
Initializable
,
LogEnabled
{
@Inject
private
MessageIdFactory
m_factory
;
@Override
public
void
enableLogging
(
Logger
logger
)
{
...
...
@@ -20,7 +31,11 @@ public class NullMessageManager extends ContainerHolder implements MessageManage
@Override
public
void
initialize
()
throws
InitializationException
{
try
{
m_factory
.
initialize
(
"localhost"
);
}
catch
(
IOException
e
)
{
e
.
printStackTrace
();
}
}
@Override
...
...
apollo-
client/src/test
/java/com/ctrip/apollo/cat/NullMessageProducer.java
→
apollo-
buildtools/src/main
/java/com/ctrip/apollo/cat/NullMessageProducer.java
View file @
22756eb0
File moved
apollo-
client/src/test
/java/com/ctrip/apollo/cat/NullTransportManager.java
→
apollo-
buildtools/src/main
/java/com/ctrip/apollo/cat/NullTransportManager.java
View file @
22756eb0
File moved
apollo-client/pom.xml
View file @
22756eb0
...
...
@@ -20,6 +20,11 @@
<groupId>
com.ctrip.apollo
</groupId>
<artifactId>
apollo-core
</artifactId>
</dependency>
<dependency>
<groupId>
com.ctrip.apollo
</groupId>
<artifactId>
apollo-buildtools
</artifactId>
<scope>
test
</scope>
</dependency>
<!-- end of apollo -->
<!-- foundation service -->
<dependency>
...
...
apollo-client/src/test/java/com/ctrip/apollo/internals/RemoteConfigRepositoryTest.java
View file @
22756eb0
...
...
@@ -18,7 +18,6 @@ import org.junit.Test;
import
org.junit.runner.RunWith
;
import
org.mockito.ArgumentCaptor
;
import
org.mockito.Mock
;
import
org.mockito.Mockito
;
import
org.mockito.invocation.InvocationOnMock
;
import
org.mockito.runners.MockitoJUnitRunner
;
import
org.mockito.stubbing.Answer
;
...
...
apollo-client/src/test/resources/META-INF/plexus/plexus.xml
View file @
22756eb0
...
...
@@ -14,6 +14,11 @@
<role>
com.dianping.cat.message.spi.MessageManager
</role>
<implementation>
com.ctrip.apollo.cat.NullMessageManager
</implementation>
<requirements>
<requirement>
<role>
com.dianping.cat.message.internal.MessageIdFactory
</role>
</requirement>
</requirements>
</component>
<component>
<role>
com.dianping.cat.message.MessageProducer
</role>
...
...
apollo-configservice/pom.xml
View file @
22756eb0
...
...
@@ -19,6 +19,11 @@
<groupId>
com.ctrip.apollo
</groupId>
<artifactId>
apollo-biz
</artifactId>
</dependency>
<dependency>
<groupId>
com.ctrip.apollo
</groupId>
<artifactId>
apollo-buildtools
</artifactId>
<scope>
test
</scope>
</dependency>
<!-- end of apollo -->
<!-- eureka -->
<dependency>
...
...
apollo-configservice/src/test/resources/META-INF/plexus/plexus.xml
0 → 100644
View file @
22756eb0
<plexus>
<components>
<component>
<role>
com.dianping.cat.configuration.ClientConfigManager
</role>
<implementation>
com.ctrip.apollo.cat.NullClientConfigManager
</implementation>
</component>
<component>
<role>
com.dianping.cat.message.io.TransportManager
</role>
<implementation>
com.ctrip.apollo.cat.NullTransportManager
</implementation>
</component>
<component>
<role>
com.dianping.cat.message.spi.MessageManager
</role>
<implementation>
com.ctrip.apollo.cat.NullMessageManager
</implementation>
<requirements>
<requirement>
<role>
com.dianping.cat.message.internal.MessageIdFactory
</role>
</requirement>
</requirements>
</component>
<component>
<role>
com.dianping.cat.message.MessageProducer
</role>
<implementation>
com.ctrip.apollo.cat.NullMessageProducer
</implementation>
<requirements>
<requirement>
<role>
com.dianping.cat.message.spi.MessageManager
</role>
</requirement>
<requirement>
<role>
com.dianping.cat.message.internal.MessageIdFactory
</role>
</requirement>
</requirements>
</component>
<component>
<role>
org.codehaus.plexus.logging.LoggerManager
</role>
<implementation>
com.ctrip.apollo.cat.NullLoggerManager
</implementation>
</component>
</components>
</plexus>
\ No newline at end of file
apollo-portal/pom.xml
View file @
22756eb0
...
...
@@ -18,6 +18,11 @@
<groupId>
com.ctrip.apollo
</groupId>
<artifactId>
apollo-common
</artifactId>
</dependency>
<dependency>
<groupId>
com.ctrip.apollo
</groupId>
<artifactId>
apollo-buildtools
</artifactId>
<scope>
test
</scope>
</dependency>
</dependencies>
<build>
<plugins>
...
...
apollo-portal/src/test/resources/META-INF/plexus/plexus.xml
0 → 100644
View file @
22756eb0
<plexus>
<components>
<component>
<role>
com.dianping.cat.configuration.ClientConfigManager
</role>
<implementation>
com.ctrip.apollo.cat.NullClientConfigManager
</implementation>
</component>
<component>
<role>
com.dianping.cat.message.io.TransportManager
</role>
<implementation>
com.ctrip.apollo.cat.NullTransportManager
</implementation>
</component>
<component>
<role>
com.dianping.cat.message.spi.MessageManager
</role>
<implementation>
com.ctrip.apollo.cat.NullMessageManager
</implementation>
<requirements>
<requirement>
<role>
com.dianping.cat.message.internal.MessageIdFactory
</role>
</requirement>
</requirements>
</component>
<component>
<role>
com.dianping.cat.message.MessageProducer
</role>
<implementation>
com.ctrip.apollo.cat.NullMessageProducer
</implementation>
<requirements>
<requirement>
<role>
com.dianping.cat.message.spi.MessageManager
</role>
</requirement>
<requirement>
<role>
com.dianping.cat.message.internal.MessageIdFactory
</role>
</requirement>
</requirements>
</component>
<component>
<role>
org.codehaus.plexus.logging.LoggerManager
</role>
<implementation>
com.ctrip.apollo.cat.NullLoggerManager
</implementation>
</component>
</components>
</plexus>
\ No newline at end of file
pom.xml
View file @
22756eb0
...
...
@@ -117,6 +117,11 @@
<version>
${project.version}
</version>
</dependency>
<dependency>
<groupId>
com.ctrip.apollo
</groupId>
<artifactId>
apollo-buildtools
</artifactId>
<version>
${project.version}
</version>
</dependency>
<dependency>
<groupId>
com.ctrip.framework
</groupId>
<artifactId>
framework-foundation
</artifactId>
<version>
1.1.4
</version>
...
...
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