Skip to content
This repository was archived by the owner on Nov 27, 2023. It is now read-only.

Commit ffcbf93

Browse files
committed
断言类使用错误
1 parent c37f862 commit ffcbf93

1 file changed

Lines changed: 21 additions & 20 deletions

File tree

  • src/test/java/org/suren/autotest/web/framework/xsd

src/test/java/org/suren/autotest/web/framework/xsd/Xsd.java

Lines changed: 21 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,35 +1,36 @@
11
/*
2-
* Copyright 2002-2007 the original author or authors.
32
*
4-
* Licensed under the Apache License, Version 2.0 (the "License");
5-
* you may not use this file except in compliance with the License.
6-
* You may obtain a copy of the License at
3+
* * Copyright 2002-2007 the original author or authors.
4+
* *
5+
* * Licensed under the Apache License, Version 2.0 (the "License");
6+
* * you may not use this file except in compliance with the License.
7+
* * You may obtain a copy of the License at
8+
* *
9+
* * http://www.apache.org/licenses/LICENSE-2.0
10+
* *
11+
* * Unless required by applicable law or agreed to in writing, software
12+
* * distributed under the License is distributed on an "AS IS" BASIS,
13+
* * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14+
* * See the License for the specific language governing permissions and
15+
* * limitations under the License.
716
*
8-
* http://www.apache.org/licenses/LICENSE-2.0
9-
*
10-
* Unless required by applicable law or agreed to in writing, software
11-
* distributed under the License is distributed on an "AS IS" BASIS,
12-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13-
* See the License for the specific language governing permissions and
14-
* limitations under the License.
1517
*/
1618

1719
package org.suren.autotest.web.framework.xsd;
1820

19-
import java.io.FileNotFoundException;
20-
import java.io.IOException;
21-
import java.io.InputStream;
22-
import java.util.List;
23-
24-
import javax.xml.transform.stream.StreamSource;
25-
2621
import org.apache.ws.commons.schema.XmlSchema;
2722
import org.apache.ws.commons.schema.XmlSchemaCollection;
2823
import org.apache.ws.commons.schema.XmlSchemaElement;
2924
import org.apache.ws.commons.schema.XmlSchemaObject;
30-
import org.eclipse.core.runtime.Assert;
25+
import org.junit.Assert;
3126
import org.junit.Test;
3227

28+
import javax.xml.transform.stream.StreamSource;
29+
import java.io.FileNotFoundException;
30+
import java.io.IOException;
31+
import java.io.InputStream;
32+
import java.util.List;
33+
3334
/**
3435
* @author suren
3536
* @date 2017年1月2日 下午8:25:39
@@ -41,7 +42,7 @@ public void test()
4142
{
4243
try(InputStream input = Xsd.class.getResourceAsStream("/autotest.web.framework.xsd"))
4344
{
44-
Assert.isNotNull(input);
45+
Assert.assertNotNull(input);
4546

4647
XmlSchemaCollection schemaCol = new XmlSchemaCollection();
4748
XmlSchema schema = schemaCol.read(new StreamSource(input));

0 commit comments

Comments
 (0)