Package com.google.nigori.client

Examples of com.google.nigori.client.Datastore


    super(store);
  }

  @Test
  public void test() throws NigoriCryptographyException, IOException, UnauthorisedException {
    Datastore nigori = getStore();
    for (int i = 0; i < AcceptanceTests.REPEAT; ++i) {// check we can do this more than once
      assertTrue("Not registered", nigori.register());
      assertTrue("Can't authenticate", nigori.authenticate());
      assertTrue("Can't unregister", nigori.unregister());
      assertFalse("Authenticated after unregistration", nigori.authenticate());
      assertFalse("Could re-unregister", nigori.unregister());
    }
  }
View Full Code Here


*/
public class MRegistrationTest extends AcceptanceTest {

  @Test
  public void test() throws NigoriCryptographyException, IOException, UnauthorisedException {
    Datastore nigori = getStore();
    for (int i = 0; i < AcceptanceTests.REPEAT; ++i) {// check we can do this more than once
      assertTrue("Not registered", nigori.register());
      assertTrue("Can't authenticate", nigori.authenticate());
      assertTrue("Can't unregister", nigori.unregister());
      assertFalse("Authenticated after unregistration", nigori.authenticate());
      assertFalse("Could re-unregister", nigori.unregister());
    }
  }
View Full Code Here

TOP

Related Classes of com.google.nigori.client.Datastore

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.