Forum Discussion

johnbilay's avatar
johnbilay
New Contributor II
7 years ago

JUnit Unable to open schema file

Dear experts

We have an issue with Jtest in our snaps development.
While running Junit testing it seems that I cannot open a specific schema file which is called com-snalogic-snap-template_2 and I cannot find this file in the project. We tried Jtest with the example snaps’ Jtest classes as well. Then I got the same error as shown below:
Any idea on how to solve this issue?

2018-11-20 15:13:44 ERROR SchemaRegistry:115 a- Unable to get schema: com-snaplogic-snap-template_2
com.google.common.util.concurrent.UncheckedExecutionException:com.snaplogic.api.ExecutionException: Unable to open schema file: ./jschema/src/tesWe have an issue with Jtest in our snaps development.
Firstly, My Junit testing is just fine, as I can run Jtest to other non-snaplogic maven projects. It seems like that I cannot open a specific schema file which is called com-snalogic-snap-template_2 and I cannot find this file in the project. We tried Jtest with the example snaps’ Jtest classes as well. Then I got the same error as shown below:
So you may be have an idea of how to solve this issue?

2018-11-20 15:13:44 ERROR SchemaRegistry:115 a- Unable to get schema: com-snaplogic-snap-template_2
com.google.common.util.concurrent.UncheckedExecutionException:com.snaplogic.api.ExecutionException: Unable to open schema file: ./jschema/src/test/resources/schema/com-snaplogic-snap-template_2.schema
at com.google.common.cache.LocalCache$Segment.get(LocalCache.java:2207)


t/resources/schema/com-snaplogic-snap-template_2.schema
at com.google.common.cache.LocalCache$Segment.get(LocalCache.java:2207)

Kind regards
JB