// Path: src/test/java/org/fbsks/certservices/BaseTest.java
// @RunWith(SpringRunner.class)
// @SpringBootTest(webEnvironment = WebEnvironment.RANDOM_PORT)
// @Transactional
// public abstract class BaseTest {
// 
// }
// 
// Path: src/main/java/org/fbsks/certservices/model/PKI.java
// @Entity
// public class PKI extends AbstractPersistable<Long> {
// 
// 	private static final long serialVersionUID = -140537791349423216L;
// 
// 	@OneToMany
// 	private List<CertificateAuthority> cas; 
// 	
// 	@JsonView(PKISummary.class)
// 	private String name;
// 	
// 	protected PKI() {}
// 	
// 	public PKI(String name, List<CertificateAuthority> cas) {
// 		this.name = name;
// 		this.cas = cas;
// 	}
// 	
// 	public PKI(String name, CertificateAuthority ca) {
// 		this.name = name;
// 		
// 		this.cas = new ArrayList<CertificateAuthority>();
// 		this.cas.add(ca);
// 	}
// 
// 	public List<CertificateAuthority> getCas() {
// 		return cas;
// 	}
// 
// 	public String getName() {
// 		return name;
// 	}
// 	
// 	public void setCas(List<CertificateAuthority> cas) {
// 		this.cas = cas;
// 	}
// 
// 	public void setName(String name) {
// 		this.name = name;
// 	}
// }


import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertNotNull;
import java.security.cert.X509CRL;
import org.fbsks.certservices.BaseTest;
import org.fbsks.certservices.model.PKI;
import org.junit.Test;
import org.springframework.beans.factory.annotation.Autowired;
package org.fbsks.certservices.services;




/**
 * 
 * @author fabio.resner
 *
 */
public class CRLServiceTest extends BaseTest {

	private static final String NONEXISTING_CA_NAME = "NO_WAY_THIS_CA_NAME_EXISTS";
	private static final String TEST_PKI_NAME = "testPKI";
	
	private static final String TEST_PKI_CN = "CN=testPKIROOTCA";
	
	@Autowired
	private CRLService crlService;
	
	@Autowired
// Path: src/test/java/org/fbsks/certservices/BaseTest.java
// @RunWith(SpringRunner.class)
// @SpringBootTest(webEnvironment = WebEnvironment.RANDOM_PORT)
// @Transactional
// public abstract class BaseTest {
// 
// }
// 
// Path: src/main/java/org/fbsks/certservices/model/PKI.java
// @Entity
// public class PKI extends AbstractPersistable<Long> {
// 
// 	private static final long serialVersionUID = -140537791349423216L;
// 
// 	@OneToMany
// 	private List<CertificateAuthority> cas; 
// 	
// 	@JsonView(PKISummary.class)
// 	private String name;
// 	
// 	protected PKI() {}
// 	
// 	public PKI(String name, List<CertificateAuthority> cas) {
// 		this.name = name;
// 		this.cas = cas;
// 	}
// 	
// 	public PKI(String name, CertificateAuthority ca) {
// 		this.name = name;
// 		
// 		this.cas = new ArrayList<CertificateAuthority>();
// 		this.cas.add(ca);
// 	}
// 
// 	public List<CertificateAuthority> getCas() {
// 		return cas;
// 	}
// 
// 	public String getName() {
// 		return name;
// 	}
// 	
// 	public void setCas(List<CertificateAuthority> cas) {
// 		this.cas = cas;
// 	}
// 
// 	public void setName(String name) {
// 		this.name = name;
// 	}
// }


// Path: src/test/java/org/fbsks/certservices/services/CRLServiceTest.java
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertNotNull;
import java.security.cert.X509CRL;
import org.fbsks.certservices.BaseTest;
import org.fbsks.certservices.model.PKI;
import org.junit.Test;
import org.springframework.beans.factory.annotation.Autowired;

package org.fbsks.certservices.services;




/**
 * 
 * @author fabio.resner
 *
 */
public class CRLServiceTest extends BaseTest {

	private static final String NONEXISTING_CA_NAME = "NO_WAY_THIS_CA_NAME_EXISTS";
	private static final String TEST_PKI_NAME = "testPKI";
	
	private static final String TEST_PKI_CN = "CN=testPKIROOTCA";
	
	@Autowired
	private CRLService crlService;
	
	@Autowired
	private PKIService pkiService;