mirror of
https://github.com/signalapp/Signal-Server
synced 2026-04-21 08:58:38 +01:00
Demonstrate JUnit 5 works by migrating an existing test
This commit is contained in:
@@ -5,21 +5,21 @@
|
||||
|
||||
package org.whispersystems.textsecuregcm.util;
|
||||
|
||||
import org.junit.Test;
|
||||
import org.junit.jupiter.api.Test;
|
||||
|
||||
import java.security.cert.X509Certificate;
|
||||
import java.time.Duration;
|
||||
import java.time.Instant;
|
||||
import java.util.Date;
|
||||
|
||||
import static org.junit.Assert.*;
|
||||
import static org.junit.jupiter.api.Assertions.*;
|
||||
import static org.mockito.Mockito.mock;
|
||||
import static org.mockito.Mockito.when;
|
||||
|
||||
public class CertificateExpirationGaugeTest {
|
||||
class CertificateExpirationGaugeTest {
|
||||
|
||||
@Test
|
||||
public void loadValue() {
|
||||
void loadValue() {
|
||||
final X509Certificate certificate = mock(X509Certificate.class);
|
||||
|
||||
final long daysUntilExpiration = 17;
|
||||
|
||||
Reference in New Issue
Block a user