package com.alexstyl.specialdates.events.namedays.calendar.resource;

import com.alexstyl.specialdates.events.namedays.NamedayLocale;

import org.junit.Before;
import org.junit.Test;

import static org.fest.assertions.api.Assertions.assertThat;

public class NamedayJSONResourceProviderTest {

    private NamedayJSONResourceProvider provider;

    @Before
    public void setUp() throws Exception {
        provider = new NamedayJSONResourceProvider(new JavaJSONResourceLoader());
    }

    @Test
    public void namedaysAreNotEmpty() throws Exception {
        NamedayJSON namedays = provider.getNamedayJSONFor(NamedayLocale.gr);
        assertThat(namedays.getData()).isNotNull();
        assertThat(namedays.getSpecial()).isNotNull();
    }
}

@@ -512,27 +512,489 @@
 oid 
-namedaysAreNotEmpty
+allLocalesHaveData() throws Exception %7B%0A        for (NamedayLocale namedayLocale : NamedayLocale.values()) %7B%0A            NamedayJSON namedays = provider.getNamedayJSONFor(namedayLocale);%0A            assertThat(namedays.getData().length()).isNotZero();%0A        %7D%0A    %7D%0A%0A    @Test%0A    public void grHasSpecial() throws Exception %7B%0A        NamedayJSON namedays = provider.getNamedayJSONFor(NamedayLocale.gr);%0A        hasSpecial(namedays);%0A    %7D%0A%0A    @Test%0A    public void roHasSpecial
 () t
@@ -1075,34 +1075,34 @@
 r(NamedayLocale.
-g
 r
+o
 );%0A        asser
@@ -1100,103 +1100,983 @@
     
+h
 as
-sertThat(namedays.getData()).isNotNull();%0A        assertThat(namedays.getSpecial()).isNotNull
+Special(namedays);%0A    %7D%0A%0A    @Test%0A    public void ruHasNoSpecial() throws Exception %7B%0A        NamedayJSON namedays = provider.getNamedayJSONFor(NamedayLocale.ru);%0A        hasNoSpecial(namedays);%0A    %7D%0A%0A    @Test%0A    public void lvHasNoSpecial() throws Exception %7B%0A        NamedayJSON namedays = provider.getNamedayJSONFor(NamedayLocale.lv);%0A        hasNoSpecial(namedays);%0A    %7D%0A%0A    @Test%0A    public void csHasNoSpecial() throws Exception %7B%0A        NamedayJSON namedays = provider.getNamedayJSONFor(NamedayLocale.cs);%0A        hasNoSpecial(namedays);%0A    %7D%0A%0A    @Test%0A    public void skHasNoSpecial() throws Exception %7B%0A        NamedayJSON namedays = provider.getNamedayJSONFor(NamedayLocale.sk);%0A        hasNoSpecial(namedays);%0A    %7D%0A%0A    private void hasSpecial(NamedayJSON namedays) %7B%0A        assertThat(namedays.getSpecial().length()).isNotZero();%0A    %7D%0A%0A    private void hasNoSpecial(NamedayJSON namedays) %7B%0A        assertThat(namedays.getSpecial().length()).isZero
 ();%0A

Add tests for all locals