package com.github.jmchilton.blend4j.galaxy;

import com.github.jmchilton.blend4j.galaxy.beans.TabularToolDataTable;
import org.testng.annotations.BeforeMethod;
import org.testng.annotations.Test;

import java.util.List;

public class ToolDataTest {
    private GalaxyInstance instance;
    private ToolDataClient client;

    @BeforeMethod
    public void init() {
        instance = TestGalaxyInstance.get();
        client = instance.getToolDataClient();
    }

    @Test
    public void testGetToolData() {
        final List<TabularToolDataTable> toolDataTables = client.getDataTables();
        assert toolDataTables != null;
        assert ! toolDataTables.isEmpty();

        for (final TabularToolDataTable toolDataTable : toolDataTables) {
            assert toolDataTable.getName() != null;
        }
    }
}

@@ -491,24 +491,26 @@
  testGet
-Tool
 Data
+Tables
 () %7B%0A   
@@ -789,32 +789,89 @@
 Name() != null;%0A
+            System.out.println(toolDataTable.getName());%0A
         %7D%0A    %7D%0A

Rename Test for ToolDataClient.getDataTables