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
63774ac9
Commit
63774ac9
authored
Jul 15, 2016
by
lepdou
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update
parent
66c4f954
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
14 deletions
+10
-14
FileTextResolverTest.java
...ollo/portal/service/txtresolver/FileTextResolverTest.java
+5
-7
PropertyResolverTest.java
...ollo/portal/service/txtresolver/PropertyResolverTest.java
+5
-7
No files found.
apollo-portal/src/test/java/com/ctrip/framework/apollo/portal/service/txtresolver/FileTextResolverTest.java
View file @
63774ac9
...
...
@@ -3,21 +3,19 @@ package com.ctrip.framework.apollo.portal.service.txtresolver;
import
com.ctrip.framework.apollo.core.ConfigConsts
;
import
com.ctrip.framework.apollo.core.dto.ItemChangeSets
;
import
com.ctrip.framework.apollo.core.dto.ItemDTO
;
import
com.ctrip.framework.apollo.portal.Abstract
Integration
Test
;
import
com.ctrip.framework.apollo.portal.Abstract
Unit
Test
;
import
org.junit.Assert
;
import
org.junit.Test
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.beans.factory.annotation.Qualifier
;
import
org.mockito.InjectMocks
;
import
java.util.Arrays
;
import
java.util.Collections
;
public
class
FileTextResolverTest
extends
Abstract
Integration
Test
{
public
class
FileTextResolverTest
extends
Abstract
Unit
Test
{
@Qualifier
(
"fileTextResolver"
)
@Autowired
private
ConfigTextResolver
resolver
;
@InjectMocks
private
FileTextResolver
resolver
;
private
final
String
CONFIG_TEXT
=
"config_text"
;
private
final
long
NAMESPACE
=
1000
;
...
...
apollo-portal/src/test/java/com/ctrip/framework/apollo/portal/service/txtresolver/PropertyResolverTest.java
View file @
63774ac9
...
...
@@ -4,22 +4,20 @@ package com.ctrip.framework.apollo.portal.service.txtresolver;
import
com.ctrip.framework.apollo.core.dto.ItemChangeSets
;
import
com.ctrip.framework.apollo.core.dto.ItemDTO
;
import
com.ctrip.framework.apollo.core.exception.BadRequestException
;
import
com.ctrip.framework.apollo.portal.Abstract
Integration
Test
;
import
com.ctrip.framework.apollo.portal.Abstract
Unit
Test
;
import
org.junit.Assert
;
import
org.junit.Test
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.beans.factory.annotation.Qualifier
;
import
org.mockito.InjectMocks
;
import
java.util.Arrays
;
import
java.util.Collections
;
import
java.util.List
;
public
class
PropertyResolverTest
extends
Abstract
Integration
Test
{
public
class
PropertyResolverTest
extends
Abstract
Unit
Test
{
@Autowired
@Qualifier
(
"propertyResolver"
)
private
ConfigTextResolver
resolver
;
@InjectMocks
private
PropertyResolver
resolver
;
@Test
public
void
testEmptyText
()
{
...
...
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