Package opendap.dts

Class testEngine

java.lang.Object
opendap.dts.testEngine

public class testEngine extends Object
Used by the test server to reset the server output for each new client request.
See Also:
  • BaseType
  • Constructor Details

    • testEngine

      public testEngine(int sLength)
      Parameters:
      sLength - Length of test Sequences
  • Method Details

    • getMaxSequenceLength

      public int getMaxSequenceLength()
    • nextBool

      public boolean nextBool()
    • nextByte

      public byte nextByte()
    • nextFloat32

      public float nextFloat32()
    • nextFloat64

      public double nextFloat64()
    • nextUint16

      public short nextUint16()
    • nextInt16

      public short nextInt16()
    • nextUint32

      public int nextUint32()
    • nextInt32

      public int nextInt32()
    • nextURL

      public String nextURL()
    • nextString

      public String nextString()
    • newLoadTestArray

      public void newLoadTestArray(String datasetName, test_SDArray ta) throws IOException
      Loads test Arrays full of data
      Parameters:
      datasetName - Name of dataset
      ta - Array to load up
      Throws:
      IOException - When crap goes wrong
    • loadTestGrid

      public void loadTestGrid(String datasetName, test_SDGrid tg) throws opendap.dap.NoSuchVariableException, IOException, EOFException
      Loads test Grids full of data
      Throws:
      opendap.dap.NoSuchVariableException
      IOException
      EOFException