Ejemplo n.º 1
0
 public void testAuth_malformed_url3() throws Exception {
   AuthorizationRequest req =
       new AuthorizationRequest(
           "10.0.0.2.5/sqrl?972764a6021a2649e9bbecfd52c36f13b30a260dbc5c373a53e9d7ae502d0c3a");
   // There is no need to be this forgiving. Noone would expect it and I see no benefit in leaving
   // it out
   assertEquals(false, req.IsValid());
 }
Ejemplo n.º 2
0
  public void testAuth_malformed_url() throws Exception {

    AuthorizationRequest req =
        new AuthorizationRequest(
            "example.com/sqrl?4095c8adfa51dabe30fe9f9474d3f91def620300e489e6853baa67bed5d5e0d4");
    // There is no need to be this forgiving. Noone would expect it and I see no benefit in leaving
    // it out
    assertEquals(false, req.IsValid());
  }