Java Code Examples for org.dbunit.dataset.ReplacementDataSet#addReplacementSubstring()
The following examples show how to use
org.dbunit.dataset.ReplacementDataSet#addReplacementSubstring() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: CustomReplacer.java From database-rider with Apache License 2.0 | 5 votes |
@Override public void addReplacements(ReplacementDataSet dataSet) { dataSet.addReplacementSubstring("FOO", "BAR"); }
Example 2
Source File: DateTimeReplacer.java From database-rider with Apache License 2.0 | 4 votes |
private void replaceDays(Date currentDate, ReplacementDataSet replacementDataSet) { for (DayReplacerType type : DayReplacerType.values()) { Date calculatedDate = addDays(currentDate, type.getDays()); replacementDataSet.addReplacementSubstring(getPlaceholderPattern(type), DateUtils.formatDateTime(calculatedDate)); } }
Example 3
Source File: DateTimeReplacer.java From database-rider with Apache License 2.0 | 4 votes |
private void replaceHours(Date currentDate, ReplacementDataSet replacementDataSet) { for (HourReplacerType type : HourReplacerType.values()) { Date calculatedDate = addHours(currentDate, type.getHours()); replacementDataSet.addReplacementSubstring(getPlaceholderPattern(type), DateUtils.formatDateTime(calculatedDate)); } }
Example 4
Source File: DateTimeReplacer.java From database-rider with Apache License 2.0 | 4 votes |
private void replaceMinutes(Date currentDate, ReplacementDataSet replacementDataSet) { for (MinuteReplacerType type : MinuteReplacerType.values()) { Date calculatedDate = addMinutes(currentDate, type.getMinutes()); replacementDataSet.addReplacementSubstring(getPlaceholderPattern(type), DateUtils.formatDateTime(calculatedDate)); } }
Example 5
Source File: DateTimeReplacer.java From database-rider with Apache License 2.0 | 4 votes |
private void replaceSeconds(Date currentDate, ReplacementDataSet replacementDataSet) { for (SecondReplacerType type : SecondReplacerType.values()) { Date calculatedDate = addSeconds(currentDate, type.getSeconds()); replacementDataSet.addReplacementSubstring(getPlaceholderPattern(type), DateUtils.formatDateTime(calculatedDate)); } }
Example 6
Source File: CustomReplacerBar.java From database-rider with Apache License 2.0 | 4 votes |
@Override public void addReplacements(ReplacementDataSet dataSet) { dataSet.addReplacementSubstring("BAR", "BAZ"); }