Skip to content

Convert dom.serialization.Test to JUnit - #105

Open
elharo wants to merge 5 commits into
mainfrom
convert-serialization-to-junit
Open

Convert dom.serialization.Test to JUnit#105
elharo wants to merge 5 commits into
mainfrom
convert-serialization-to-junit

Conversation

@elharo

@elharo elharo commented Jul 7, 2026

Copy link
Copy Markdown
Contributor

Convert the dom.serialization.Test test harness from main()-driven to JUnit 3.

  • Extends TestCase
  • Creates in-memory document, round-trips through Java serialization, verifies contents
  • Registered in batchtest and old java task removed in build.xml

@elharo
elharo force-pushed the convert-serialization-to-junit branch from d026376 to d914084 Compare July 7, 2026 22:04
@elharo elharo changed the title [XERCESJ-1796] Convert dom.serialization.Test to JUnit 3 Convert dom.serialization.Test to JUnit 3 Jul 8, 2026
@elharo
elharo force-pushed the convert-serialization-to-junit branch from d914084 to 5c51def Compare July 8, 2026 11:58
@elharo elharo changed the title Convert dom.serialization.Test to JUnit 3 Convert dom.serialization.Test to JUnit Jul 8, 2026
@elharo
elharo force-pushed the convert-serialization-to-junit branch from 5c51def to 75da312 Compare July 8, 2026 19:55
@elharo
elharo requested a review from mrglavas July 8, 2026 21:39
# Conflicts:
#	build.xml
Comment thread tests/dom/serialization/Test.java Outdated
}
public void testSerializationRoundTrip() throws Exception {
DocumentImpl doc = new DocumentImpl();
Element root = doc.createElement("root");

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should probably be using createElementNS() here to be consistent with namespace-aware API usage.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants