Class SynchronizationTest
- java.lang.Object
-
- org.odpi.openmetadata.accessservices.analyticsmodeling.fvt.common.AnalyticsModelingTestBase
-
- org.odpi.openmetadata.accessservices.analyticsmodeling.fvt.synchronization.SynchronizationTest
-
public class SynchronizationTest extends AnalyticsModelingTestBase
SynchronizationTest calls the SynchronizationClient to create, update, delete analytic artifacts.
-
-
Field Summary
-
Fields inherited from class org.odpi.openmetadata.accessservices.analyticsmodeling.fvt.common.AnalyticsModelingTestBase
maxPageSize
-
-
Constructor Summary
Constructors Constructor Description SynchronizationTest()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static FVTResultsperformFVT(String serverName, String serverPlatformRootURL, String userId)Run all of the defined tests and capture the results.static <T> TreadObjectJson(String folder, String fileName, Class<T> cls)Build object from JSON content provided in file.-
Methods inherited from class org.odpi.openmetadata.accessservices.analyticsmodeling.fvt.common.AnalyticsModelingTestBase
getImportClient, getRepositoryServiceClient, getSynchronizationClient
-
-
-
-
Method Detail
-
performFVT
public static FVTResults performFVT(String serverName, String serverPlatformRootURL, String userId)
Run all of the defined tests and capture the results.- Parameters:
serverName- name of the server to connect toserverPlatformRootURL- the network address of the server running the OMAS REST serversuserId- calling user- Returns:
- results of running test
-
readObjectJson
public static <T> T readObjectJson(String folder, String fileName, Class<T> cls) throws IOException
Build object from JSON content provided in file.- Type Parameters:
T- class of the object to build.- Parameters:
folder- location of the file.fileName- without extension, JSON extension is appended.cls- class to build.- Returns:
- object created from json file.
- Throws:
IOException- if input file cannot be read.
-
-