Package com.jitcaforwin.cominterface.exceptions

Examples of com.jitcaforwin.cominterface.exceptions.HResult


public class HRESULTTest {

  @Test
  public void ObjectDeletedTest() {
    HResult hr = new HResult(-1610350078);
    assertTrue(hr.is_ITUNES_E_OBJECTDELETED());
  }
View Full Code Here


    assertTrue(hr.is_ITUNES_E_OBJECTDELETED());
  }

  @Test
  public void ObjectDeletedNegativeTest() {
    HResult hr = new HResult(12345678);
    assertFalse(hr.is_ITUNES_E_OBJECTDELETED());
  }
View Full Code Here

    assertFalse(hr.is_ITUNES_E_OBJECTDELETED());
  }

  @Test
  public void InvalidArgumentTest() {
    HResult hr = new HResult(-2147024809);
    assertTrue(hr.is_E_INVALIDARG());
  }
View Full Code Here

    assertTrue(hr.is_E_INVALIDARG());
  }

  @Test
  public void InvalidArgumentNegativeTest() {
    HResult hr = new HResult(12345678);
    assertFalse(hr.is_E_INVALIDARG());
  }
View Full Code Here

    assertFalse(hr.is_E_INVALIDARG());
  }
 
  @Test(expected = ITUNES_E_OBJECTDELETED.class)
  public void ObjectDeletedExceptionTest() {
    HResult hr = new HResult(-1610350078);
    throw hr.createException();
  }
View Full Code Here

    throw hr.createException();
  }

  @Test(expected = E_INVALIDARG.class)
  public void InvalidArgumentExceptionTest() {
    HResult hr = new HResult(-2147024809);
    throw hr.createException();
  }
View Full Code Here

TOP

Related Classes of com.jitcaforwin.cominterface.exceptions.HResult

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.