Skip to content

Commit

Permalink
task-5580: move FunctionNameHelper to rune common and tests (#200)
Browse files Browse the repository at this point in the history
  • Loading branch information
Chuks-Ajeh authored Jan 20, 2025
1 parent 1dcefcb commit c378ff2
Show file tree
Hide file tree
Showing 11 changed files with 70 additions and 278 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,25 @@
package com.regnosys.testing.performance;

/*-
* ===============
* Rune Testing
* ===============
* Copyright (C) 2022 - 2025 REGnosys
* ===============
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* ===============
*/


import java.util.List;

Expand Down Expand Up @@ -32,4 +52,4 @@ public interface PerformanceTest<I, O> {
*/
O run(I data) throws Exception;

}
}
Original file line number Diff line number Diff line change
@@ -1,5 +1,25 @@
package com.regnosys.testing.performance;

/*-
* ===============
* Rune Testing
* ===============
* Copyright (C) 2022 - 2025 REGnosys
* ===============
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* ===============
*/

import com.google.common.base.Stopwatch;

import java.time.Duration;
Expand Down Expand Up @@ -223,4 +243,4 @@ public O run(I data) {
}
}

}
}
Original file line number Diff line number Diff line change
@@ -1,5 +1,25 @@
package com.regnosys.testing.performance.http;

/*-
* ===============
* Rune Testing
* ===============
* Copyright (C) 2022 - 2025 REGnosys
* ===============
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* ===============
*/

import com.regnosys.testing.performance.PerformanceTest;
import com.regnosys.testing.performance.PerformanceTestHarness;

Expand Down

This file was deleted.

134 changes: 0 additions & 134 deletions src/main/java/com/regnosys/testing/pipeline/FunctionNameHelper.java

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,8 @@
import javax.inject.Inject;
import java.util.List;
import java.util.stream.Collectors;
import com.regnosys.rosetta.common.transform.FunctionNameHelper;


public class PipelineModelBuilder {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@

import com.regnosys.rosetta.common.transform.TransformType;
import com.rosetta.model.lib.functions.RosettaFunction;
import com.regnosys.rosetta.common.transform.FunctionNameHelper;

import java.util.List;
import java.util.stream.Collectors;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
import com.regnosys.rosetta.common.transform.PipelineModel;
import com.regnosys.rosetta.common.transform.TestPackModel;
import com.regnosys.rosetta.common.transform.TransformType;
import com.regnosys.rosetta.common.transform.FunctionNameHelper;
import com.regnosys.testing.reports.ObjectMapperGenerator;
import org.jetbrains.annotations.NotNull;
import org.slf4j.Logger;
Expand All @@ -41,6 +42,7 @@
import java.util.stream.Collectors;
import java.util.stream.Stream;


import static com.regnosys.rosetta.common.util.UrlUtils.getBaseFileName;

public class PipelineTestPackWriter {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,8 @@
import java.util.Comparator;
import java.util.List;
import java.util.stream.Collectors;
import com.regnosys.rosetta.common.transform.FunctionNameHelper;


public class PipelineTreeBuilder {
private final Logger LOGGER = LoggerFactory.getLogger(PipelineTreeBuilder.class);
Expand Down
Loading

0 comments on commit c378ff2

Please sign in to comment.