• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

hazendaz / scriptable-dataset / #19

27 Aug 2023 02:10AM UTC coverage: 90.291%. Remained the same
#19

push

github

hazendaz
[pom] Override dbunit usage of ojdbc8 with latest 19.20.0.0

old one has a lot of extra junk

93 of 103 relevant lines covered (90.29%)

0.9 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

85.71
/src/main/java/de/gmorling/scriptabledataset/ScriptableIterator.java
1
/*
2
 * scriptable-dataset (https://github.com/hazendaz/scriptable-dataset)
3
 *
4
 * Copyright 2011-2023 Hazendaz.
5
 *
6
 * All rights reserved. This program and the accompanying materials
7
 * are made available under the terms of The Apache Software License,
8
 * Version 2.0 which accompanies this distribution, and is available at
9
 * https://www.apache.org/licenses/LICENSE-2.0.txt
10
 *
11
 * Contributors:
12
 *     Gunnar Morling
13
 *     Hazendaz (Jeremy Landis).
14
 */
15
package de.gmorling.scriptabledataset;
16

17
import java.util.List;
18

19
import org.dbunit.dataset.DataSetException;
20
import org.dbunit.dataset.ITable;
21
import org.dbunit.dataset.ITableIterator;
22
import org.dbunit.dataset.ITableMetaData;
23

24
/**
25
 * The Class ScriptableIterator.
26
 */
27
public class ScriptableIterator implements ITableIterator {
28

29
    /** The wrapped. */
30
    private ITableIterator wrapped;
31

32
    /** The configurations. */
33
    private List<ScriptableDataSetConfig> configurations;
34

35
    /**
36
     * Instantiates a new scriptable iterator.
37
     *
38
     * @param wrapped
39
     *            the wrapped
40
     * @param configurations
41
     *            the configurations
42
     */
43
    public ScriptableIterator(ITableIterator wrapped, List<ScriptableDataSetConfig> configurations) {
1✔
44
        this.wrapped = wrapped;
1✔
45
        this.configurations = configurations;
1✔
46
    }
1✔
47

48
    @Override
49
    public ITable getTable() throws DataSetException {
50
        return new ScriptableTable(wrapped.getTable(), configurations);
1✔
51
    }
52

53
    @Override
54
    public ITableMetaData getTableMetaData() throws DataSetException {
55
        return wrapped.getTableMetaData();
×
56
    }
57

58
    @Override
59
    public boolean next() throws DataSetException {
60
        return wrapped.next();
1✔
61
    }
62

63
}
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc