Class SieveTests


  • public class SieveTests
    extends java.lang.Object
    Some tests for the prime producing class Sieve.
    Since:
    12.08.2016 18:21:55
    Author:
    Nico Danneberg
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private Sieve s
      A reference to a Sieve of size 50.
    • Constructor Summary

      Constructors 
      Constructor Description
      SieveTests()  
    • Method Summary

      Modifier and Type Method Description
      void testFor()
      Tests a "for" reading access of the sieve without manual reseting.
      void testForEach1()
      Tests a "for-each" reading access of the sieve.
      void testForEach2()
      Again, tests a "for-each" reading access of the sieve without manual reseting.
      void testWhile()
      Tests a "while" reading access of the sieve with manual reseting.
      • Methods inherited from class java.lang.Object

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

      • s

        private Sieve s
        A reference to a Sieve of size 50.
    • Constructor Detail

      • SieveTests

        public SieveTests()
    • Method Detail

      • testForEach1

        public void testForEach1()
        Tests a "for-each" reading access of the sieve.
      • testForEach2

        public void testForEach2()
        Again, tests a "for-each" reading access of the sieve without manual reseting.
      • testWhile

        public void testWhile()
        Tests a "while" reading access of the sieve with manual reseting.
        See Also:
        Sieve.reset()
      • testFor

        public void testFor()
        Tests a "for" reading access of the sieve without manual reseting.