Examples of Inquiry


Examples of org.jscsi.scsi.protocol.cdb.Inquiry

   protected void execute() throws InterruptedException, SenseException
   {
      CDB cdb = getCommand().getCommandDescriptorBlock();
      assert cdb instanceof Inquiry;

      Inquiry inquiryCDB = (Inquiry) cdb;

      if (inquiryCDB.isEVPD())
      {
         VPDPage vpdPage = getInquiryDataRegistry().getVPDPage(inquiryCDB.getPageCode());
         if (vpdPage != null)
         {
            try
            {
               this.writeData(vpdPage.encode());
            }
            catch (IOException e)
            {
               _logger.debug("cound not encode vpd page in task: " + this);
               throw new RuntimeException("Could not encode VPD page", e);
            }
         }
         else
         {
            // Invalid page code
            _logger.debug("invalid page code in task: " + this);
            throw new InvalidFieldInCDBException(true, 2);
         }
      }
      else
      {
         if (inquiryCDB.getPageCode() == 0x00)
         {
            this.writeData(getInquiryDataRegistry().getStandardInquiryData().encode());
         }
         else
         {
View Full Code Here

Examples of org.kuali.rice.krad.uif.widget.Inquiry

  /**
   * tests {@link Inquirable#buildInquirableLink(java.lang.Object, java.lang.String, org.kuali.rice.krad.uif.widget.Inquiry)}
   */
  public void testBuildInquirableLinkObjectStringInquiry() {
    // concrete class is the same as the presented class
    Inquiry inq = mock(Inquiry.class);
    String propertyName = "localReference";
    inquirable.buildInquirableLink(dataObject, propertyName, inq);
    verify(inq).buildInquiryLink(same(dataObject), same(propertyName), same(CourtCase.class), anyMapOf(String.class, String.class));
   
    // null concrete class
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.