• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 package com.networknt.schema;
2 
3 import java.io.InputStream;
4 import org.junit.jupiter.api.Assertions;
5 import org.junit.jupiter.api.Test;
6 
7 public class Issue314Test {
8     private static final JsonSchemaFactory FACTORY =
9             JsonSchemaFactory.builder(JsonSchemaFactory.getInstance(SpecVersion.VersionFlag.V7))
10                     .metaSchema(
11                             JsonMetaSchema.builder(
12                                     "http://iglucentral.com/schemas/com.snowplowanalytics.self-desc/schema/jsonschema/1-0-0#",
13                                     JsonMetaSchema.getV7())
14                                     .build())
15                     .build();
16 
17     @Test
testNormalizeHttpOnly()18     public void testNormalizeHttpOnly() {
19         String schemaPath = "/schema/issue314-v7.json";
20         InputStream schemaInputStream = getClass().getResourceAsStream(schemaPath);
21         JsonSchema schema = FACTORY.getSchema(schemaInputStream);
22 
23         Assertions.assertNotNull(schema);
24     }
25 }
26