-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
added native support for enum constant mapping; adjusted tests
- Loading branch information
1 parent
5bd97cf
commit aa77fe2
Showing
8 changed files
with
78 additions
and
27 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
10 changes: 10 additions & 0 deletions
10
src/test/java/me/blvckbytes/bbconfigmapper/sections/CustomObject.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
package me.blvckbytes.bbconfigmapper.sections; | ||
|
||
public class CustomObject { | ||
|
||
public final String value; | ||
|
||
public CustomObject(String value) { | ||
this.value = value; | ||
} | ||
} |
16 changes: 16 additions & 0 deletions
16
src/test/java/me/blvckbytes/bbconfigmapper/sections/CustomObjectSection.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
package me.blvckbytes.bbconfigmapper.sections; | ||
|
||
import me.blvckbytes.gpeee.interpreter.EvaluationEnvironmentBuilder; | ||
|
||
public class CustomObjectSection extends AConfigSection { | ||
|
||
public CustomObject customObject; | ||
|
||
public CustomObjectSection(EvaluationEnvironmentBuilder baseEnvironment) { | ||
super(baseEnvironment); | ||
} | ||
|
||
public CustomObject getCustomObject() { | ||
return customObject; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
customObject: Hello, world |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
customEnumA: HELLO | ||
customEnumB: WORLD | ||
customEnumC: ENUM |
File renamed without changes.