You should include the network and broadcast addresses
Try this

public void testMail() throws Exception {
        final SubnetUtils subnetUtils = new SubnetUtils("1.2.3.4/32");
        subnetUtils.setInclusiveHostCount(true);
        String[] address = subnetUtils.getInfo().getAllAddresses();
        assertNotNull(address);
        assertEquals(1,address.length);
    }


Twitter     :http://www.twitter.com/m_cucchiara
G+          :https://plus.google.com/107903711540963855921
Linkedin    :http://www.linkedin.com/in/mauriziocucchiara

Maurizio Cucchiara



2011/11/1 Kanatoko <[email protected]>:
> new SubnetUtils( "1.2.3.4/32" ).getInfo().getAllAddresses()

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to