File tree Expand file tree Collapse file tree 2 files changed +4
-7
lines changed
binary-array-ld-netcdf/src/test/kotlin/net/bald/netcdf Expand file tree Collapse file tree 2 files changed +4
-7
lines changed Original file line number Diff line number Diff line change @@ -16,11 +16,10 @@ class AttributeSourceVerifier(
16
16
* Begin verifying attributes on the attribute source.
17
17
* Attributes are supplied in the order that they are declared.
18
18
* Also verify that the number of attributes verified is equal to the total number of attributes available.
19
- * @param prefix The prefix mapping to apply.
20
19
* @param verify A function to perform against the [AttributesVerifier] for the resource.
21
20
*/
22
- fun attributes (prefix : PrefixMapping , verify : AttributesVerifier .() -> Unit ) {
23
- val attrs = source.attributes(prefix )
21
+ fun attributes (verify : AttributesVerifier .() -> Unit ) {
22
+ val attrs = source.attributes()
24
23
val attrIt = attrs.iterator()
25
24
AttributesVerifier (source, attrIt).verify()
26
25
if (attrIt.hasNext()) {
Original file line number Diff line number Diff line change @@ -13,22 +13,20 @@ class AttributesVerifier(
13
13
* Verify that the next attribute has the given properties.
14
14
* Begin verifying values on the attribute.
15
15
* @param uri The expected attribute URI.
16
- * @param name The expected attribute name.
17
16
* @param verify A function to perform against the [AttributeValuesVerifier] for the attribute.
18
17
*/
19
- fun attribute (uri : String? , name : String , verify : AttributeValuesVerifier .() -> Unit = {}) {
18
+ fun attribute (uri : String , verify : AttributeValuesVerifier .() -> Unit = {}) {
20
19
if (attrIt.hasNext()) {
21
20
val attr = attrIt.next()
22
21
assertEquals(uri, attr.uri, " Wrong URI on attribute $attr ." )
23
- assertEquals(name, attr.name, " Wrong name on attribute $attr ." )
24
22
25
23
val valueIt = attr.values.iterator()
26
24
AttributeValuesVerifier (attr, valueIt).verify()
27
25
if (valueIt.hasNext()) {
28
26
fail(" Unexpected value on attribute $attr : ${valueIt.next()} " )
29
27
}
30
28
} else {
31
- fail(" Expected attribute with name $name on $source , but no more attributes were found." )
29
+ fail(" Expected attribute with URI $uri on $source , but no more attributes were found." )
32
30
}
33
31
}
34
32
}
You can’t perform that action at this time.
0 commit comments