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
Hide whitespace changes
Inline
Side-by-side
Showing
16 changed files
with
190 additions
and
12 deletions
+190
-12
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
+25
-11
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 @@
...
@@ -19,6 +19,11 @@
<groupId>
com.ctrip.apollo
</groupId>
<groupId>
com.ctrip.apollo
</groupId>
<artifactId>
apollo-biz
</artifactId>
<artifactId>
apollo-biz
</artifactId>
</dependency>
</dependency>
<dependency>
<groupId>
com.ctrip.apollo
</groupId>
<artifactId>
apollo-buildtools
</artifactId>
<scope>
test
</scope>
</dependency>
<!-- end of apollo -->
<!-- end of apollo -->
<!-- eureka -->
<!-- eureka -->
<dependency>
<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 @@
...
@@ -13,4 +13,10 @@
<properties>
<properties>
<github.path>
${project.artifactId}
</github.path>
<github.path>
${project.artifactId}
</github.path>
</properties>
</properties>
<dependencies>
<dependency>
<groupId>
com.dianping.cat
</groupId>
<artifactId>
cat-client
</artifactId>
</dependency>
</dependencies>
</project>
</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
;
package
com
.
ctrip
.
apollo
.
cat
;
import
java.io.IOException
;
import
org.codehaus.plexus.logging.LogEnabled
;
import
org.codehaus.plexus.logging.LogEnabled
;
import
org.codehaus.plexus.logging.Logger
;
import
org.codehaus.plexus.logging.Logger
;
import
org.codehaus.plexus.personality.plexus.lifecycle.phase.Initializable
;
import
org.codehaus.plexus.personality.plexus.lifecycle.phase.Initializable
;
import
org.codehaus.plexus.personality.plexus.lifecycle.phase.InitializationException
;
import
org.codehaus.plexus.personality.plexus.lifecycle.phase.InitializationException
;
import
org.unidal.lookup.ContainerHolder
;
import
org.unidal.lookup.ContainerHolder
;
import
org.unidal.lookup.annotation.Inject
;
import
com.dianping.cat.message.Message
;
import
com.dianping.cat.message.Message
;
import
com.dianping.cat.message.Transaction
;
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.MessageManager
;
import
com.dianping.cat.message.spi.MessageTree
;
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
@Override
public
void
enableLogging
(
Logger
logger
)
{
public
void
enableLogging
(
Logger
logger
)
{
}
}
@Override
@Override
public
void
initialize
()
throws
InitializationException
{
public
void
initialize
()
throws
InitializationException
{
try
{
m_factory
.
initialize
(
"localhost"
);
}
catch
(
IOException
e
)
{
e
.
printStackTrace
();
}
}
}
@Override
@Override
public
void
add
(
Message
message
)
{
public
void
add
(
Message
message
)
{
}
}
@Override
@Override
...
@@ -65,27 +80,27 @@ public class NullMessageManager extends ContainerHolder implements MessageManage
...
@@ -65,27 +80,27 @@ public class NullMessageManager extends ContainerHolder implements MessageManage
@Override
@Override
public
void
reset
()
{
public
void
reset
()
{
}
}
@Override
@Override
public
void
setTraceMode
(
boolean
traceMode
)
{
public
void
setTraceMode
(
boolean
traceMode
)
{
}
}
@Override
@Override
public
void
setup
()
{
public
void
setup
()
{
}
}
@Override
@Override
public
void
start
(
Transaction
transaction
,
boolean
forked
)
{
public
void
start
(
Transaction
transaction
,
boolean
forked
)
{
}
}
@Override
@Override
public
void
bind
(
String
tag
,
String
title
)
{
public
void
bind
(
String
tag
,
String
title
)
{
}
}
@Override
@Override
...
@@ -93,4 +108,4 @@ public class NullMessageManager extends ContainerHolder implements MessageManage
...
@@ -93,4 +108,4 @@ public class NullMessageManager extends ContainerHolder implements MessageManage
return
null
;
return
null
;
}
}
}
}
\ No newline at end of file
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 @@
...
@@ -20,6 +20,11 @@
<groupId>
com.ctrip.apollo
</groupId>
<groupId>
com.ctrip.apollo
</groupId>
<artifactId>
apollo-core
</artifactId>
<artifactId>
apollo-core
</artifactId>
</dependency>
</dependency>
<dependency>
<groupId>
com.ctrip.apollo
</groupId>
<artifactId>
apollo-buildtools
</artifactId>
<scope>
test
</scope>
</dependency>
<!-- end of apollo -->
<!-- end of apollo -->
<!-- foundation service -->
<!-- foundation service -->
<dependency>
<dependency>
...
...
apollo-client/src/test/java/com/ctrip/apollo/internals/RemoteConfigRepositoryTest.java
View file @
22756eb0
...
@@ -18,7 +18,6 @@ import org.junit.Test;
...
@@ -18,7 +18,6 @@ import org.junit.Test;
import
org.junit.runner.RunWith
;
import
org.junit.runner.RunWith
;
import
org.mockito.ArgumentCaptor
;
import
org.mockito.ArgumentCaptor
;
import
org.mockito.Mock
;
import
org.mockito.Mock
;
import
org.mockito.Mockito
;
import
org.mockito.invocation.InvocationOnMock
;
import
org.mockito.invocation.InvocationOnMock
;
import
org.mockito.runners.MockitoJUnitRunner
;
import
org.mockito.runners.MockitoJUnitRunner
;
import
org.mockito.stubbing.Answer
;
import
org.mockito.stubbing.Answer
;
...
...
apollo-client/src/test/resources/META-INF/plexus/plexus.xml
View file @
22756eb0
...
@@ -14,6 +14,11 @@
...
@@ -14,6 +14,11 @@
<role>
com.dianping.cat.message.spi.MessageManager
</role>
<role>
com.dianping.cat.message.spi.MessageManager
</role>
<implementation>
com.ctrip.apollo.cat.NullMessageManager
<implementation>
com.ctrip.apollo.cat.NullMessageManager
</implementation>
</implementation>
<requirements>
<requirement>
<role>
com.dianping.cat.message.internal.MessageIdFactory
</role>
</requirement>
</requirements>
</component>
</component>
<component>
<component>
<role>
com.dianping.cat.message.MessageProducer
</role>
<role>
com.dianping.cat.message.MessageProducer
</role>
...
...
apollo-configservice/pom.xml
View file @
22756eb0
...
@@ -19,6 +19,11 @@
...
@@ -19,6 +19,11 @@
<groupId>
com.ctrip.apollo
</groupId>
<groupId>
com.ctrip.apollo
</groupId>
<artifactId>
apollo-biz
</artifactId>
<artifactId>
apollo-biz
</artifactId>
</dependency>
</dependency>
<dependency>
<groupId>
com.ctrip.apollo
</groupId>
<artifactId>
apollo-buildtools
</artifactId>
<scope>
test
</scope>
</dependency>
<!-- end of apollo -->
<!-- end of apollo -->
<!-- eureka -->
<!-- eureka -->
<dependency>
<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 @@
...
@@ -18,6 +18,11 @@
<groupId>
com.ctrip.apollo
</groupId>
<groupId>
com.ctrip.apollo
</groupId>
<artifactId>
apollo-common
</artifactId>
<artifactId>
apollo-common
</artifactId>
</dependency>
</dependency>
<dependency>
<groupId>
com.ctrip.apollo
</groupId>
<artifactId>
apollo-buildtools
</artifactId>
<scope>
test
</scope>
</dependency>
</dependencies>
</dependencies>
<build>
<build>
<plugins>
<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 @@
...
@@ -117,6 +117,11 @@
<version>
${project.version}
</version>
<version>
${project.version}
</version>
</dependency>
</dependency>
<dependency>
<dependency>
<groupId>
com.ctrip.apollo
</groupId>
<artifactId>
apollo-buildtools
</artifactId>
<version>
${project.version}
</version>
</dependency>
<dependency>
<groupId>
com.ctrip.framework
</groupId>
<groupId>
com.ctrip.framework
</groupId>
<artifactId>
framework-foundation
</artifactId>
<artifactId>
framework-foundation
</artifactId>
<version>
1.1.4
</version>
<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