Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
zhangjian1949
apollo
提交
5fed2f13
apollo
项目概览
zhangjian1949
/
apollo
与 Fork 源项目一致
从无法访问的项目Fork
通知
3
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
apollo
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
5fed2f13
编写于
6月 14, 2020
作者:
J
Jason Song
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
fix failed tests and update build status badge
上级
938138f0
变更
3
显示空白变更内容
内联
并排
Showing
3 changed file
with
14 addition
and
3 deletion
+14
-3
README.md
README.md
+2
-2
apollo-client/src/test/java/com/ctrip/framework/apollo/spring/JavaConfigAnnotationTest.java
...rip/framework/apollo/spring/JavaConfigAnnotationTest.java
+1
-0
apollo-client/src/test/java/com/ctrip/framework/apollo/util/yaml/YamlParserTest.java
.../com/ctrip/framework/apollo/util/yaml/YamlParserTest.java
+11
-1
未找到文件。
README.md
浏览文件 @
5fed2f13
...
...
@@ -2,8 +2,8 @@
# Apollo - A reliable configuration management system
[
![Build Status
](
https://
travis-ci.org/ctripcorp/apollo.svg?branch=master
)
](https://travis-ci.org/ctripcorp/apollo
)
[
![GitHub
r
elease
](
https://img.shields.io/github/release/ctripcorp/apollo.svg
)
](https://github.com/ctripcorp/apollo/releases)
[
![Build Status
](
https://
github.com/ctripcorp/apollo/workflows/build/badge.svg
)
](https://github.com/ctripcorp/apollo/actions
)
[
![GitHub
R
elease
](
https://img.shields.io/github/release/ctripcorp/apollo.svg
)
](https://github.com/ctripcorp/apollo/releases)
[
![Maven Central Repo
](
https://img.shields.io/maven-central/v/com.ctrip.framework.apollo/apollo.svg
)
](https://mvnrepository.com/artifact/com.ctrip.framework.apollo/apollo-client)
[
![codecov.io
](
https://codecov.io/github/ctripcorp/apollo/coverage.svg?branch=master
)
](https://codecov.io/github/ctripcorp/apollo?branch=master)
[
![License
](
https://img.shields.io/badge/License-Apache%202.0-blue.svg
)
](https://opensource.org/licenses/Apache-2.0)
...
...
apollo-client/src/test/java/com/ctrip/framework/apollo/spring/JavaConfigAnnotationTest.java
浏览文件 @
5fed2f13
...
...
@@ -80,6 +80,7 @@ public class JavaConfigAnnotationTest extends AbstractSpringIntegrationTest {
mockConfig
(
ConfigConsts
.
NAMESPACE_APPLICATION
,
applicationConfig
);
mockConfig
(
FX_APOLLO_NAMESPACE
,
fxApolloConfig
);
prepareYamlConfigFile
(
APPLICATION_YAML_NAMESPACE
,
readYamlContentAsConfigFileProperties
(
"case9.yml"
));
TestApolloChildConfigBean
bean
=
getBean
(
TestApolloChildConfigBean
.
class
,
AppConfig6
.
class
);
...
...
apollo-client/src/test/java/com/ctrip/framework/apollo/util/yaml/YamlParserTest.java
浏览文件 @
5fed2f13
...
...
@@ -6,6 +6,7 @@ import static org.mockito.Mockito.mock;
import
static
org
.
mockito
.
Mockito
.
when
;
import
com.ctrip.framework.apollo.build.MockInjector
;
import
com.ctrip.framework.apollo.internals.DefaultInjector
;
import
com.ctrip.framework.apollo.util.OrderedProperties
;
import
com.ctrip.framework.apollo.util.factory.PropertiesFactory
;
import
com.google.common.base.Charsets
;
...
...
@@ -13,6 +14,7 @@ import com.google.common.io.Files;
import
java.io.File
;
import
java.io.IOException
;
import
java.util.Properties
;
import
org.junit.Before
;
import
org.junit.Test
;
import
org.mockito.invocation.InvocationOnMock
;
import
org.mockito.stubbing.Answer
;
...
...
@@ -22,7 +24,15 @@ import org.yaml.snakeyaml.parser.ParserException;
public
class
YamlParserTest
{
private
YamlParser
parser
=
new
YamlParser
();
private
YamlParser
parser
;
@Before
public
void
setUp
()
throws
Exception
{
MockInjector
.
reset
();
MockInjector
.
setDelegate
(
new
DefaultInjector
());
parser
=
new
YamlParser
();
}
@Test
public
void
testValidCases
()
throws
Exception
{
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录