Android Open Source - movecerts Certificate Test






From Project

Back to project page movecerts.

License

The source code is released under:

GNU General Public License

If you think the Android project movecerts listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.

Java Source Code

package com.nutomic.zertman.test;
//from  ww w  . ja  va  2 s  .com
import android.test.AndroidTestCase;
import android.test.suitebuilder.annotation.MediumTest;
import android.test.suitebuilder.annotation.SmallTest;

import com.nutomic.zertman.Certificate;

public class CertificateTest extends AndroidTestCase {

  Certificate a1 = new Certificate("a", true);
  Certificate a2 = new Certificate("a", false);
  Certificate b1 = new Certificate("b", true);
  Certificate b2 = new Certificate("b", false);

  @SmallTest
  public void testEquals() {
    assertNotSame(a1, a2);
    assertNotSame(a2, b1);
    assertNotSame(a1, b1);
    assertNotSame(a2, b2);
  }

  @SmallTest
  public void testGetFile() {
    assertNotNull(a1.getFile());
    assertNotNull(a2.getFile());
  }
}




Java Source Code List

com.nutomic.zertman.CertificateAdapter.java
com.nutomic.zertman.CertificateManager.java
com.nutomic.zertman.Certificate.java
com.nutomic.zertman.MainActivity.java
com.nutomic.zertman.MovedCertificatesStorage.java
com.nutomic.zertman.test.CertificateManagerTest.java
com.nutomic.zertman.test.CertificateTest.java
com.nutomic.zertman.test.MainActivityTest.java
com.nutomic.zertman.test.MovedCertificatesStorageTest.java