package com.atlassian.stash.internal.cluster;

import org.junit.Test;

import java.time.ZoneId;

import static org.hamcrest.Matchers.equalTo;
import static org.junit.Assert.assertThat;

public class TimeZoneClusterJoinRequirementTest {

    private TimeZoneClusterJoinRequirement requirement = new TimeZoneClusterJoinRequirement();

    @Test
    public void testNameReturnsTimeZone() {
        assertThat(requirement.getName(), equalTo("timeZone"));
    }

    @Test
    public void testValueReturnsJvmTz() {
        assertThat(requirement.getValue(), equalTo(ZoneId.systemDefault().getId()));
    }
}