Skip to content

Commit

Permalink
update test
Browse files Browse the repository at this point in the history
  • Loading branch information
tvd12 committed Dec 19, 2020
1 parent 5dcfef9 commit e354d0e
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ public void readSpaces() {
BaseFileReader reader = new BaseFileReader();
Properties properties = reader.read("application.yaml");
System.out.println(properties);
assert properties.get("cors.allow_orgin").equals("*");
assert properties.get("cors.allow_origin").equals("*");
assert properties.get("cors.enable").equals("true");
assert properties.get("server.port").equals("3005");
assert properties.get("server.host").equals("0.0.0.0");
Expand All @@ -41,7 +41,7 @@ public void readTabs() {
BaseFileReader reader = new BaseFileReader();
Properties properties = reader.read("application2_yaml.txt");
System.out.println(properties);
assert properties.get("cors.allow_orgin").equals("*");
assert properties.get("cors.allow_origin").equals("*");
assert properties.get("cors.enable").equals("true");
assert properties.get("server.port").equals("3005");
assert properties.get("server.host").equals("0.0.0.0");
Expand Down
2 changes: 1 addition & 1 deletion src/test/resources/application.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ server:
# cors config
cors:
enable: true # true or false
allow_orgin: '*'
allow_origin: '*'
hello: world
foo: bar
# datasources config
Expand Down
2 changes: 1 addition & 1 deletion src/test/resources/application2_yaml.txt
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ server:
password2: 123456
cors:
enable: true
allow_orgin: '*'
allow_origin: '*'
hello: world
foo: bar
string1: ''
Expand Down

0 comments on commit e354d0e

Please sign in to comment.