Class SimpleSysTest

  • All Implemented Interfaces:
    Watcher

    public class SimpleSysTest
    extends BaseSysTest
    implements Watcher
    This does a basic system test. It starts up an ensemble of servers and a set of clients. It makes sure that all the clients come up. It kills off servers while making a change and then ensures that all clients see the change. And then signals the clients to die and watches them disappear.
    • Constructor Detail

      • SimpleSysTest

        public SimpleSysTest()
    • Method Detail

      • testSimpleCase

        public void testSimpleCase()
                            throws java.lang.Exception
        This test checks the following: 1) All clients connect successfully 2) Half of the servers die (assuming odd number) and a write succeeds 3) All servers are restarted and cluster stays alive 4) Clients see a change by the server 5) Clients' ephemeral nodes are cleaned up
        Throws:
        java.lang.Exception