Lines 56-62
Link Here
|
56 |
result.add(new Object[] { TestType.IPv4, "0.0.0.0:8080", Integer.valueOf(7), null} ); |
56 |
result.add(new Object[] { TestType.IPv4, "0.0.0.0:8080", Integer.valueOf(7), null} ); |
57 |
// IPv4 - invalid |
57 |
// IPv4 - invalid |
58 |
result.add(new Object[] { TestType.IPv4, ".0.0.0", Integer.valueOf(-1), IAE} ); |
58 |
result.add(new Object[] { TestType.IPv4, ".0.0.0", Integer.valueOf(-1), IAE} ); |
59 |
result.add(new Object[] { TestType.IPv4, "0.0.0.", Integer.valueOf(-1), IAE} ); |
|
|
60 |
result.add(new Object[] { TestType.IPv4, "0..0.0", Integer.valueOf(-1), IAE} ); |
59 |
result.add(new Object[] { TestType.IPv4, "0..0.0", Integer.valueOf(-1), IAE} ); |
61 |
result.add(new Object[] { TestType.IPv4, "0]", Integer.valueOf(-1), IAE} ); |
60 |
result.add(new Object[] { TestType.IPv4, "0]", Integer.valueOf(-1), IAE} ); |
62 |
// Domain Name - valid |
61 |
// Domain Name - valid |
Lines 125-138
Link Here
|
125 |
result.add(new Object[] { TestType.IPv4, "myapp-t.my-domain.com:8080", Integer.valueOf(21), null} ); |
124 |
result.add(new Object[] { TestType.IPv4, "myapp-t.my-domain.com:8080", Integer.valueOf(21), null} ); |
126 |
result.add(new Object[] { TestType.IPv4, "myapp-t.my-domain.c-om", Integer.valueOf(-1), null} ); |
125 |
result.add(new Object[] { TestType.IPv4, "myapp-t.my-domain.c-om", Integer.valueOf(-1), null} ); |
127 |
result.add(new Object[] { TestType.IPv4, "myapp-t.my-domain.c-om:8080", Integer.valueOf(22), null} ); |
126 |
result.add(new Object[] { TestType.IPv4, "myapp-t.my-domain.c-om:8080", Integer.valueOf(22), null} ); |
|
|
127 |
// Domain Name with trailing dot - valid |
128 |
result.add(new Object[] { TestType.IPv4, "0.0.0.", Integer.valueOf(-1), null} ); |
129 |
result.add(new Object[] { TestType.IPv4, "myapp-t.mydomain.com.", Integer.valueOf(-1), null} ); |
130 |
result.add(new Object[] { TestType.IPv4, "myapp-t.mydomain.com.:8080", Integer.valueOf(21), null} ); |
131 |
result.add(new Object[] { TestType.IPv4, "foo.bar.", Integer.valueOf(-1), null} ); |
132 |
result.add(new Object[] { TestType.IPv4, "foo.bar.:8080", Integer.valueOf(8), null} ); |
128 |
// Domain Name - invalid |
133 |
// Domain Name - invalid |
129 |
result.add(new Object[] { TestType.IPv4, ".", Integer.valueOf(-1), IAE} ); |
134 |
result.add(new Object[] { TestType.IPv4, ".", Integer.valueOf(-1), IAE} ); |
130 |
result.add(new Object[] { TestType.IPv4, ".:8080", Integer.valueOf(-1), IAE} ); |
135 |
result.add(new Object[] { TestType.IPv4, ".:8080", Integer.valueOf(-1), IAE} ); |
131 |
result.add(new Object[] { TestType.IPv4, ".foo.bar", Integer.valueOf(-1), IAE} ); |
136 |
result.add(new Object[] { TestType.IPv4, ".foo.bar", Integer.valueOf(-1), IAE} ); |
132 |
result.add(new Object[] { TestType.IPv4, "-foo.bar", Integer.valueOf(-1), IAE} ); |
137 |
result.add(new Object[] { TestType.IPv4, "-foo.bar", Integer.valueOf(-1), IAE} ); |
133 |
result.add(new Object[] { TestType.IPv4, "foo.bar.", Integer.valueOf(-1), IAE} ); |
|
|
134 |
result.add(new Object[] { TestType.IPv4, "foo.bar-", Integer.valueOf(-1), IAE} ); |
138 |
result.add(new Object[] { TestType.IPv4, "foo.bar-", Integer.valueOf(-1), IAE} ); |
135 |
result.add(new Object[] { TestType.IPv4, "foo.bar.:8080", Integer.valueOf(-1), IAE} ); |
|
|
136 |
result.add(new Object[] { TestType.IPv4, "foo.bar-:8080", Integer.valueOf(-1), IAE} ); |
139 |
result.add(new Object[] { TestType.IPv4, "foo.bar-:8080", Integer.valueOf(-1), IAE} ); |
137 |
result.add(new Object[] { TestType.IPv4, "^foo.bar", Integer.valueOf(-1), IAE} ); |
140 |
result.add(new Object[] { TestType.IPv4, "^foo.bar", Integer.valueOf(-1), IAE} ); |
138 |
result.add(new Object[] { TestType.IPv4, "foo-.bar", Integer.valueOf(-1), IAE} ); |
141 |
result.add(new Object[] { TestType.IPv4, "foo-.bar", Integer.valueOf(-1), IAE} ); |