package io.fundrequest.core.request.domain;

import org.junit.Test;

import java.util.HashSet;
import java.util.Set;

import static org.assertj.core.api.Assertions.assertThat;

public class RequestTest {

    @Test
    public void getTechnologies() {

        Set<RequestTechnology> technologies = new HashSet<>();
        technologies.add(RequestTechnology.builder().technology("java").weight(1L).build());
        technologies.add(RequestTechnology.builder().technology("python").weight(2L).build());
        technologies.add(RequestTechnology.builder().technology("kotlin").weight(3L).build());
        technologies.add(RequestTechnology.builder().technology("html").weight(4L).build());
        technologies.add(RequestTechnology.builder().technology("css").weight(5L).build());
        technologies.add(RequestTechnology.builder().technology("typescript").weight(1L).build());

        Request request = RequestMother.fundRequestArea51().withTechnologies(technologies).build();

        assertThat(request.getTechnologies()).containsExactlyInAnyOrder("python", "kotlin", "html", "css");
    }
}
@@ -312,101 +312,8 @@
 ();%0A
-        technologies.add(RequestTechnology.builder().technology(%22java%22).weight(1L).build());%0A
     
@@ -686,107 +686,8 @@
 ());
-%0A        technologies.add(RequestTechnology.builder().technology(%22typescript%22).weight(1L).build());
 %0A%0A  

update test