/** * {@inheritDoc} */ @Override public IDescriptorResult getDescriptorResultType() { return new IntegerResultType(); }
@Test public void testToString() { Assert.assertEquals("IntegerResultType", new IntegerResultType().toString()); }
@Test public void testLength() { Assert.assertEquals(1, new IntegerResultType().length()); }
/** {@inheritDoc} */ @Override public IDescriptorResult getDescriptorResultType() { return new IntegerResultType(); }
/** * {@inheritDoc} */ @Override public IDescriptorResult getDescriptorResultType() { return new IntegerResultType(); }
/** {@inheritDoc} */ @Override public IDescriptorResult getDescriptorResultType() { return new IntegerResultType(); }
/** {@inheritDoc} */ @Override public IDescriptorResult getDescriptorResultType() { return new IntegerResultType(); }
/** {@inheritDoc} */ @Override public IDescriptorResult getDescriptorResultType() { return new IntegerResultType(); }
/** {@inheritDoc} */ @Override public IDescriptorResult getDescriptorResultType() { return new IntegerResultType(); }
@Override public IDescriptorResult getDescriptorResultType(){ IDescriptorResult result = getDescriptor().getDescriptorResultType(); if(result instanceof DoubleArrayResultType){ return new DoubleResultType(); } else if(result instanceof IntegerArrayResultType){ return new IntegerResultType(); } else { throw new IllegalStateException(); } }
@Test public void testIntegerResultType() { IDescriptorResult type = new IntegerResultType(); Assert.assertNotNull(type); }