Skip to content

Commit

Permalink
test: add test cases for openfeign integration
Browse files Browse the repository at this point in the history
  • Loading branch information
taccisum committed Jul 3, 2019
1 parent 185a7ce commit 693a35f
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions generators/test/app/index.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -158,6 +158,12 @@ describe('optional dependencies', () => {
])
});

it('should have properties', () => {
const appYaml = yaml.safeLoad(fs.readFileSync('foo-service-provider/src/main/resources/application.yml'));
assert(appYaml.feign);
assert(appYaml.feign.hystrix);
});

it('should exist annotations', () => {
assert.fileContent([
['foo-service-provider/src/main/java/com/deepexi/foo/StartupApplication.java', /import org.springframework.cloud.openfeign.EnableFeignClients;/],
Expand Down

0 comments on commit 693a35f

Please sign in to comment.