forked from protocol-laboratory/mtconnect-java
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: move test xml to resources dir
Signed-off-by: zhiheng123 <903292776@qq.com>
- Loading branch information
1 parent
805663d
commit 26ed52f
Showing
10 changed files
with
208 additions
and
191 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
9 changes: 9 additions & 0 deletions
9
mtconnect-server/src/test/java/io/github/protocol/mtconnect/server/MTConnectFileUtil.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
package io.github.protocol.mtconnect.server; | ||
|
||
import java.io.InputStream; | ||
|
||
public class MTConnectFileUtil { | ||
public static InputStream readFile(String filePath) { | ||
return MTConnectFileUtil.class.getClassLoader().getResourceAsStream(filePath); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<MTConnectAssets xmlns="urn:mtconnect.org:MTConnectAssets:1.2" | ||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | ||
xsi:schemaLocation="urn:mtconnect.org:MTConnectAssets:1.2 ../MTConnectAssets_1.2.xsd"> | ||
|
||
<Header creationTime="2001-12-17T09:30:47Z" sender="localhost" | ||
version="1.2" bufferSize="131000" instanceId="1" /> | ||
|
||
<Assets> | ||
<CuttingTool serialNumber="1234" timestamp="2001-12-17T09:30:47Z" assetId="1234-112233"> | ||
<Description>Cutting Tool</Description> | ||
<ToolDefinition>...</ToolDefinition> | ||
<ToolLifeCycle deviceUuid="1222" toolId="1234">...</ToolLifeCycle> | ||
</CuttingTool> | ||
</Assets> | ||
</MTConnectAssets> |
Oops, something went wrong.