Class LazyFileOutputStreamTest


  • public class LazyFileOutputStreamTest
    extends java.lang.Object
    Test the LazyFileOutputStream.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void closeCut()
      Be kind and close before exit.
      void initCut()
      Set cut and helping reader with a file.
      void testWrite()
      Test that write() opens the delegate and delegates.
      void testWrite_twice()
      Test that write() opens the delegate and delegates even two times.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • LazyFileOutputStreamTest

        public LazyFileOutputStreamTest()
    • Method Detail

      • initCut

        public void initCut()
        Set cut and helping reader with a file.
      • closeCut

        public void closeCut()
                      throws java.lang.Exception
        Be kind and close before exit.
        Throws:
        java.lang.Exception - never.
      • testWrite

        public void testWrite()
                       throws java.lang.Exception
        Test that write() opens the delegate and delegates.
        Throws:
        java.lang.Exception - never.
      • testWrite_twice

        public void testWrite_twice()
                             throws java.lang.Exception
        Test that write() opens the delegate and delegates even two times.
        Throws:
        java.lang.Exception - never.