Refs #11230: Retrieve Accounting Regex rules through Service Endpoint

Task-Url: https://support.d4science.org/issues/11230

git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/accounting/accounting-lib@164462 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
Luca Frosini 2018-02-20 17:24:44 +00:00
parent 12f3c4eca8
commit 25b0532331
1 changed files with 24 additions and 0 deletions

View File

@ -0,0 +1,24 @@
package org.gcube.accounting.aggregator;
import java.util.List;
import org.gcube.accounting.datamodel.validations.validators.RegexReplace;
import org.gcube.testutility.ScopedTest;
import org.junit.Test;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
public class RegexRulesAggregatorTest extends ScopedTest {
private static final Logger logger = LoggerFactory.getLogger(RegexRulesAggregatorTest.class);
@Test
public void test() {
RegexRulesAggregator regexRulesAggregator = RegexRulesAggregator.getInstance();
List<RegexReplace> list = regexRulesAggregator.getRegexReplacelist();
for(RegexReplace regexReplace : list) {
logger.debug("{} {} {} {}", regexReplace.getServiceClass(), regexReplace.getServiceName(), regexReplace.getRegex(), regexReplace.getReplace());
}
}
}