@Test public void testGetShortTypeName() { assertTrue(GroovyDataProvider.getShortTypeName(String.class).equals("Tstring")); byte[] barr = new byte[0]; assertTrue(GroovyDataProvider.getShortTypeName(barr.getClass()).equals("Tbytearray")); assertTrue(GroovyDataProvider.getShortTypeName(GuardedString.class).equals("Tguardedstring")); }
static String getShortTypeName(Class<?> dataType) { String shortName = dataType.getSimpleName(); final boolean isArray = dataType.isArray(); if (isArray) { if (shortName.length() > 2) { String tmp = shortName.replace("[]", ARRAY_MARKER); shortName = tmp; } else { LOG.warn("Can't get short type for ''{0}'' (missing array type)", dataType.getName()); } } return String.format("T%s", shortName.toLowerCase()); }
GroovyDataProvider implements DataProvider { static String getShortTypeName(Class<?> dataType) { String shortName = dataType.getSimpleName(); final boolean isArray = dataType.isArray(); if (isArray) { if (shortName.length() > 2) { String tmp = shortName.replace("[]", ARRAY_MARKER); shortName = tmp; } else { LOG.warn("Can't get short type for ''{0}'' (missing array type)", dataType.getName()); } } return String.format("T%s", shortName.toLowerCase()); } }
GroovyDataProvider implements DataProvider { static String getShortTypeName(Class<?> dataType) { String shortName = dataType.getSimpleName(); final boolean isArray = dataType.isArray(); if (isArray) { if (shortName.length() > 2) { String tmp = shortName.replace("[]", ARRAY_MARKER); shortName = tmp; } else { LOG.warn("Can't get short type for ''{0}'' (missing array type)", dataType.getName()); } } return String.format("T%s", shortName.toLowerCase()); } GroovyDataProvider();  GroovyDataProvider(String connectorName);   GroovyDataProvider(URL configURL); }
GroovyDataProvider implements DataProvider { static String getShortTypeName(Class<?> dataType) { String shortName = dataType.getSimpleName(); final boolean isArray = dataType.isArray(); if (isArray) { if (shortName.length() > 2) { String tmp = shortName.replace("[]", ARRAY_MARKER); shortName = tmp; } else { LOG.warn("Can't get short type for ''{0}'' (missing array type)", dataType.getName()); } } return String.format("T%s", shortName.toLowerCase()); } GroovyDataProvider();  GroovyDataProvider(String connectorName);   GroovyDataProvider(URL configURL); Object get(String name, String type, boolean useDefault); @Override Object get(Class<?> dataTypeName, String name, String componentName,
            int sequenceNumber, boolean isMultivalue); @Override Object get(Class<?> dataTypeName, String name, String componentName); @Override String getString(String name, String componentName, int sequenceNumber); @Override String getString(String name, String componentName); @Override Object getTestSuiteAttribute(String propName); @Override Object getTestSuiteAttribute(String propName, String testName); @Override Object getConnectorAttribute(String propName); @Override Object get(String name); @Override Object generate(String pattern, Class<?> clazz); @Override Object generate(String pattern); @Override Object get(String name, int sequenceNumber); @Override Set<Attribute> getAttributeSet(final String propertySetName); @Override void loadConfiguration(final String configName, Configuration cfg); @Override void dispose(); }
GroovyDataProvider implements DataProvider { static String getShortTypeName(Class<?> dataType) { String shortName = dataType.getSimpleName(); final boolean isArray = dataType.isArray(); if (isArray) { if (shortName.length() > 2) { String tmp = shortName.replace("[]", ARRAY_MARKER); shortName = tmp; } else { LOG.warn("Can't get short type for ''{0}'' (missing array type)", dataType.getName()); } } return String.format("T%s", shortName.toLowerCase()); } GroovyDataProvider();  GroovyDataProvider(String connectorName);   GroovyDataProvider(URL configURL); Object get(String name, String type, boolean useDefault); @Override Object get(Class<?> dataTypeName, String name, String componentName,
            int sequenceNumber, boolean isMultivalue); @Override Object get(Class<?> dataTypeName, String name, String componentName); @Override String getString(String name, String componentName, int sequenceNumber); @Override String getString(String name, String componentName); @Override Object getTestSuiteAttribute(String propName); @Override Object getTestSuiteAttribute(String propName, String testName); @Override Object getConnectorAttribute(String propName); @Override Object get(String name); @Override Object generate(String pattern, Class<?> clazz); @Override Object generate(String pattern); @Override Object get(String name, int sequenceNumber); @Override Set<Attribute> getAttributeSet(final String propertySetName); @Override void loadConfiguration(final String configName, Configuration cfg); @Override void dispose(); static final String MULTI_VALUE_TYPE_PREFIX; }