コード例 #1
0
  public void testRefreshSimpleType() throws ResourceException {
    MWXmlSchema schema = this.loadSchema("BasicSimpleType");

    assertNotNull(schema.simpleType("simple-type-1"));
    assertNotNull(schema.simpleType("simple-type-2"));
    assertNotNull(schema.simpleType("simple-type-3"));
  }
コード例 #2
0
  public void testRefreshType() throws ResourceException {
    MWXmlSchema schema = this.loadSchema("BasicType_Simple");
    assertNotNull(schema.simpleType("type"));

    this.reloadSchema(schema, "BasicType_Complex");
    assertNotNull(schema.complexType("type"));

    this.reloadSchema(schema, "BasicType_Simple");
    assertNotNull(schema.simpleType("type"));
  }