Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in / Register
Toggle navigation
S
spring-boot
Project
Project
Details
Activity
Releases
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
DEMO
spring-boot
Commits
e9fb51bd
Commit
e9fb51bd
authored
Jun 27, 2016
by
Stephane Nicoll
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix test
parent
6631136f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
12 deletions
+10
-12
ConfigurationMetadataTests.java
...urationprocessor/metadata/ConfigurationMetadataTests.java
+10
-12
No files found.
spring-boot-tools/spring-boot-configuration-processor/src/test/java/org/springframework/boot/configurationprocessor/metadata/ConfigurationMetadataTests.java
View file @
e9fb51bd
...
...
@@ -34,46 +34,44 @@ public class ConfigurationMetadataTests {
@Test
public
void
toDashedCaseUpperCamelCaseSuffix
()
{
assertThat
(
toDashedCase
(
"myDLQ"
)
,
is
(
"my-d-l-q"
)
);
assertThat
(
toDashedCase
(
"myDLQ"
)
).
isEqualTo
(
"my-d-l-q"
);
}
@Test
public
void
toDashedCaseUpperCamelCaseMiddle
()
{
assertThat
(
toDashedCase
(
"someDLQKey"
)
,
is
(
"some-d-l-q-key"
)
);
assertThat
(
toDashedCase
(
"someDLQKey"
)
).
isEqualTo
(
"some-d-l-q-key"
);
}
@Test
public
void
toDashedCaseWordsUnderscore
()
{
assertThat
(
toDashedCase
(
"Word_With_underscore"
))
.
isEqualTo
(
"word
_with_
underscore"
);
.
isEqualTo
(
"word
-with-
underscore"
);
}
@Test
public
void
toDashedCaseWordsSeveralUnderscores
()
{
assertThat
(
toDashedCase
(
"Word___With__underscore"
))
.
isEqualTo
(
"word
___with__
underscore"
);
.
isEqualTo
(
"word
---with--
underscore"
);
}
@Test
public
void
toDashedCaseLowerCaseUnderscore
()
{
assertThat
(
toDashedCase
(
"lower_underscore"
)).
isEqualTo
(
"lower
_
underscore"
);
assertThat
(
toDashedCase
(
"lower_underscore"
)).
isEqualTo
(
"lower
-
underscore"
);
}
@Test
public
void
toDashedCaseUpperUnderscore
()
{
assertThat
(
toDashedCase
(
"
UPPER_UNDERSCORE"
)).
isEqualTo
(
"upper_underscore
"
);
public
void
toDashedCaseUpperUnderscore
Suffix
()
{
assertThat
(
toDashedCase
(
"
my_DLQ"
)).
isEqualTo
(
"my-d-l-q
"
);
}
@Test
public
void
toDashedCase
MultipleUnderscores
()
{
assertThat
(
toDashedCase
(
"s
uper___crazy"
)).
isEqualTo
(
"super___craz
y"
);
public
void
toDashedCase
UpperUnderscoreMiddle
()
{
assertThat
(
toDashedCase
(
"s
ome_DLQ_key"
)).
isEqualTo
(
"some-d-l-q-ke
y"
);
}
@Test
public
void
toDashedCaseUppercase
()
{
assertThat
(
toDashedCase
(
"UPPERCASE"
)).
isEqualTo
(
"uppercase"
);
public
void
toDashedCaseMultipleUnderscores
()
{
assertThat
(
toDashedCase
(
"super___crazy"
)
,
is
(
"super---crazy"
)
);
assertThat
(
toDashedCase
(
"super___crazy"
)
).
isEqualTo
(
"super---crazy"
);
}
@Test
...
...
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