Package org.jscsi.scsi.protocol.mode

Examples of org.jscsi.scsi.protocol.mode.ModePageRegistry


   @Test
   public void testRequestAllModePages()
   {
      try
      {
         ModePageRegistry registry = new StaticModePageRegistry();

         Collection<ModePage> pages = execute6(registry, (byte) 0x3F, 0xFF);
         Iterator<ModePage> it = pages.iterator();

         matches(it.next(), (byte) 0x01, 0x00);
View Full Code Here


   @Test
   public void testRequestAllPage0ModePages()
   {
      try
      {
         ModePageRegistry registry = new StaticModePageRegistry();

         Collection<ModePage> pages = execute6(registry, (byte) 0x3F, 0x00);
         Iterator<ModePage> it = pages.iterator();

         matches(it.next(), (byte) 0x01, 0x00);
View Full Code Here

   @Test
   public void testRequestInvalidModePage()
   {
      try
      {
         ModePageRegistry registry = new StaticModePageRegistry();

         execute6(registry, (byte) 0x80, 0x00);
         fail("MODE SENSE request succeeded unexpectedly");
      }
      catch (ModeSenseException e)
View Full Code Here

   @Test
   public void testRequestValidModePage()
   {
      try
      {
         ModePageRegistry registry = new StaticModePageRegistry();

         Collection<ModePage> pages = execute6(registry, (byte) 0x08, 0x00);
         Iterator<ModePage> it = pages.iterator();

         matches(it.next(), (byte) 0x08, 0x00);
View Full Code Here

TOP

Related Classes of org.jscsi.scsi.protocol.mode.ModePageRegistry

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.