Skip to content

Instantly share code, notes, and snippets.

View bodewig's full-sized avatar

Stefan Bodewig bodewig

View GitHub Profile
@bodewig
bodewig / appveyor.yml
Created January 23, 2022 11:38
appveyor.yml for XMLUnit.Net
version: 2.9.2.{build}
image:
- Visual Studio 2013
- Visual Studio 2017
skip_tags: true
for:
- matrix:
https://stackoverflow.com/questions/60177577/xmlunit-is-comparing-2-different-completely-different-nodes
$ cat X.java
import org.xmlunit.builder.*;
import org.xmlunit.diff.*;
public class X {
private static final String CONTROL = "<datapower-configuration version=\"3\">"
+ " <export-details>"
@bodewig
bodewig / Issue169.java
Created December 17, 2019 15:28
Testcase for Issue 169 in XMLUnit for Java
import org.xmlunit.builder.*;
import org.xmlunit.diff.*;
/**
* @see "https://github.com/xmlunit/xmlunit/issues/169"
*/
public class Issue169 {
private static final String X1 = "<Data:Keys xmlns:Data=\"foo\">\n"
+ "<Data:Value Key=\"1\" Name=\"Example1\" />\n"
@bodewig
bodewig / .editorconfig
Created April 24, 2019 18:47 — forked from FND/.editorconfig
SSI with nginx
# http://editorconfig.org
root = true
[*]
charset = utf-8
end_of_line = lf
insert_final_newline = true
trim_trailing_whitespace = true
max_line_length = 80
@bodewig
bodewig / Makefile
Created November 22, 2015 14:34
Makefile with Template Hack
LANGS = de en
all: test-a-de.txt test-b-de.txt test-a-en.txt test-b-en.txt
define test-file-rule
test-%-$(1).txt : select-%.sql
cat $$< > $$@
endef
clean:
@bodewig
bodewig / gist:d416666c701c313616c1
Last active August 29, 2015 14:17
removing extraneous whitespace for `loadproperties`
@bodewig
bodewig / InMemoryProjectHelper
Created February 12, 2015 05:41
simple Ant ProjectHelper that reads "buildfile from File"
Created in response to a question on the Ant user list "[Ant]Read buid.xml file in memory" - http://marc.info/?t=142367261300007&r=1&w=2
Run with something like
ANT_OPTS='-Dorg.apache.tools.ant.ProjectHelper=org.example.InMemoryProjectHelper' ant -lib . -f "arbitrary file"
this isn't anything I'd use myself, just proving how it can be done.