Selaa lähdekoodia

updated commit

Joshua Chung 6 vuotta sitten
vanhempi
commit
9a2423e912

+ 2
- 2
src/main/java/com/proximity/demo/eventbriteApi/Categories/Category.java Näytä tiedosto

@@ -10,7 +10,7 @@ import java.util.Set;
10 10
 
11 11
 @Entity
12 12
 @JsonIgnoreProperties(ignoreUnknown = true)
13
-@Table(name="CATEGORY")
13
+@Table(name="categories")
14 14
 public class Category {
15 15
 
16 16
     @Id
@@ -21,7 +21,7 @@ public class Category {
21 21
 
22 22
     public Category() { }
23 23
 
24
-    @ManyToMany(mappedBy = "category", fetch = FetchType.EAGER)
24
+    @OneToMany(mappedBy = "category_id", fetch = FetchType.EAGER)
25 25
     private Set<Event> events = new HashSet<>();
26 26
 
27 27
     @OneToMany(mappedBy = "parent_id", fetch = FetchType.EAGER)

+ 1
- 1
src/main/java/com/proximity/demo/eventbriteApi/Categories/CategoryService.java Näytä tiedosto

@@ -8,7 +8,7 @@ import org.springframework.web.client.RestTemplate;
8 8
 @Service
9 9
 public class CategoryService {
10 10
 
11
-    private static final String token = "SMEZ5DGCKW5IDHS7HXNI";
11
+    private static final String token = "FW5VNKL6N5VMXKQO7TFV";
12 12
     private final RestTemplate restTemplate;
13 13
     private CategoryRepository categoryRepository;
14 14
 

+ 41
- 69
src/main/java/com/proximity/demo/eventbriteApi/Events/Event.java Näytä tiedosto

@@ -1,11 +1,12 @@
1 1
 package com.proximity.demo.eventbriteApi.Events;
2 2
 
3
+import com.fasterxml.jackson.annotation.JsonBackReference;
3 4
 import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
4 5
 import com.fasterxml.jackson.annotation.JsonProperty;
5
-import com.fasterxml.jackson.databind.annotation.JsonSerialize;
6 6
 import com.proximity.demo.eventbriteApi.Categories.Category;
7 7
 import com.proximity.demo.eventbriteApi.Subcategories.Subcategory;
8 8
 import com.proximity.demo.eventbriteApi.Venues.Venue;
9
+import io.micrometer.core.lang.Nullable;
9 10
 
10 11
 import javax.persistence.*;
11 12
 import java.time.LocalDateTime;
@@ -21,28 +22,36 @@ public class Event {
21 22
 
22 23
     @Id
23 24
     private long id;
24
-    @Column(unique = true)
25 25
     private String eventName;
26
-    @Column(length = 10000)
27 26
     private String eventDescription;
28
-    private long category_id;
29
-    private long subcategory_id;
30
-    private long venue_id;
27
+    private Long category_id;
28
+    private Long subcategory_id;
29
+    private Long venue_id;
31 30
     private LocalDateTime startDate;
32 31
     private LocalDateTime endDate;
33 32
     private String status;
34 33
     private Date created;
35 34
     private String resource_url;
36
-    private String logo;
35
+//    private String logo;
37 36
 
38
-    @Transient
39
-    private Category oneCategory;
40 37
 
41
-    @Transient
42
-    private Subcategory oneSubcategory;
38
+    @JsonBackReference
39
+    @ManyToOne
40
+    @JoinColumn(name = "category_id", insertable = false, updatable = false)
41
+    @Nullable
42
+    private Category category;
43 43
 
44
-    @Transient
45
-    private Venue oneVenue;
44
+    @JsonBackReference
45
+    @ManyToOne
46
+    @JoinColumn(name = "subcategory_id", insertable = false, updatable = false)
47
+    @Nullable
48
+    private Subcategory subcategory;
49
+
50
+    @JsonBackReference
51
+    @ManyToOne
52
+    @JoinColumn(name = "venue_id", insertable = false, updatable = false)
53
+    @Nullable
54
+    private Venue venue;
46 55
 
47 56
     public Event() { }
48 57
 
@@ -59,7 +68,7 @@ public class Event {
59 68
         this.status = status;
60 69
         this.created = created;
61 70
         this.resource_url = resource_url;
62
-        this.logo = logo;
71
+//        this.logo = logo;
63 72
         this.venue = venue;
64 73
     }
65 74
 
@@ -83,28 +92,11 @@ public class Event {
83 92
         this.endDate =  LocalDateTime.parse((String) end.get("local"));
84 93
     }
85 94
 
86
-    @JsonProperty("logo")
87
-    private void unpackLogo(Map<String, Object> logo) {
88
-        this.logo = (String) logo.get("url");
89
-    }
90
-
91
-    @ManyToMany(fetch = FetchType.EAGER)
92
-    @JoinTable(name="event_venue",
93
-            joinColumns=@JoinColumn(name="event_id"),
94
-            inverseJoinColumns=@JoinColumn(name="venue_id"))
95
-    private Set<Venue> venue = new HashSet<>();
95
+//    @JsonProperty("logo")
96
+//    private void unpackLogo(Map<String, Object> logo) {
97
+//        this.logo = (String) logo.get("url");
98
+//    }
96 99
 
97
-    @ManyToMany(fetch = FetchType.EAGER)
98
-    @JoinTable(name="event_category",
99
-    joinColumns = @JoinColumn(name="category_id"),
100
-    inverseJoinColumns=@JoinColumn(name="event_id"))
101
-    private Set<Category> category = new HashSet<>();
102
-
103
-    @ManyToMany(fetch = FetchType.EAGER)
104
-    @JoinTable(name="Event_subcategory",
105
-    joinColumns = @JoinColumn(name="subcategory_id"),
106
-    inverseJoinColumns = @JoinColumn(name="event_id"))
107
-    private Set<Subcategory> subcategory = new HashSet<>();
108 100
 
109 101
 
110 102
     public long getId() { return id; }
@@ -151,40 +143,28 @@ public class Event {
151 143
 
152 144
     public void setResource_url(String resource_url) { this.resource_url = resource_url; }
153 145
 
154
-    public String getLogo() { return logo; }
155
-
156
-    public void setLogo(String logo) { this.logo = logo; }
157
-
158
-    public Set<Venue> getVenue() { return venue; }
159
-
160
-    public void setVenue(Set<Venue> venue) { this.venue = venue; }
161
-
162
-    public Set<Category> getCategory() { return category; }
163
-
164
-    public void setCategory(Set<Category> category) { this.category = category; }
165
-
166
-    public Category getOneCategory() {
167
-        return oneCategory;
146
+    public Category getCategory() {
147
+        return category;
168 148
     }
169 149
 
170
-    public void setOneCategory(Category oneCategory) {
171
-        this.oneCategory = oneCategory;
150
+    public void setCategory(Category category) {
151
+        this.category = category;
172 152
     }
173 153
 
174
-    public Subcategory getOneSubcategory() {
175
-        return oneSubcategory;
154
+    public Subcategory getSubcategory() {
155
+        return subcategory;
176 156
     }
177 157
 
178
-    public void setOneSubcategory(Subcategory oneSubcategory) {
179
-        this.oneSubcategory = oneSubcategory;
158
+    public void setSubcategory(Subcategory subcategory) {
159
+        this.subcategory = subcategory;
180 160
     }
181 161
 
182
-    public Venue getOneVenue() {
183
-        return oneVenue;
162
+    public Venue getVenue() {
163
+        return venue;
184 164
     }
185 165
 
186
-    public void setOneVenue(Venue oneVenue) {
187
-        this.oneVenue = oneVenue;
166
+    public void setVenue(Venue venue) {
167
+        this.venue = venue;
188 168
     }
189 169
 
190 170
     @Override
@@ -201,17 +181,9 @@ public class Event {
201 181
                 ", status='" + status + '\'' +
202 182
                 ", created=" + created +
203 183
                 ", resource_url='" + resource_url + '\'' +
204
-                ", logo='" + logo + '\'' +
184
+                ", category=" + category +
185
+                ", subcategory=" + subcategory +
205 186
                 ", venue=" + venue +
206 187
                 '}';
207 188
     }
208
-
209
-    public Set<Subcategory> getSubcategory() {
210
-        return subcategory;
211
-    }
212
-
213
-
214
-    public void setSubcategory(Set<Subcategory> subcategory) {
215
-        this.subcategory = subcategory;
216
-    }
217 189
 }

+ 15
- 9
src/main/java/com/proximity/demo/eventbriteApi/Events/EventController.java Näytä tiedosto

@@ -2,11 +2,8 @@ package com.proximity.demo.eventbriteApi.Events;
2 2
 
3 3
 
4 4
 import com.proximity.demo.eventbriteApi.Categories.CategoryRepository;
5
-import com.proximity.demo.eventbriteApi.Subcategories.Subcategory;
6 5
 import com.proximity.demo.eventbriteApi.Subcategories.SubcategoryRepository;
7
-import com.proximity.demo.eventbriteApi.Venues.Venue;
8 6
 import com.proximity.demo.eventbriteApi.Venues.VenueRepository;
9
-import com.proximity.demo.eventbriteApi.Venues.VenueService;
10 7
 import org.springframework.beans.factory.annotation.Autowired;
11 8
 import org.springframework.web.bind.annotation.CrossOrigin;
12 9
 import org.springframework.web.bind.annotation.GetMapping;
@@ -14,8 +11,8 @@ import org.springframework.web.bind.annotation.PathVariable;
14 11
 import org.springframework.web.bind.annotation.RestController;
15 12
 
16 13
 import java.util.ArrayList;
14
+import java.util.Collections;
17 15
 import java.util.List;
18
-import java.util.stream.Collectors;
19 16
 
20 17
 @RestController
21 18
 @CrossOrigin
@@ -37,17 +34,26 @@ public class EventController {
37 34
     private SubcategoryRepository subcategoryRepository;
38 35
 
39 36
     @GetMapping("/events")
40
-    public List<Event> getAll(){
41
-        eventService.getEventsInPhilly();
37
+    public Event getAll(){
38
+        return eventService.getPhillyEvents();
39
+    }
40
+
41
+    @GetMapping("/event")
42
+    public List<Event> getEvent() {
42 43
         return repository.findAll();
43 44
     }
44 45
 
45 46
     @GetMapping("/events/{id}")
46 47
     public Event getEvent(@PathVariable long id) {
47 48
         Event event = repository.findById(id).get();
48
-        event.setOneVenue(venueRepository.findById(event.getVenue_id()).orElse(null));
49
-        event.setOneCategory(categoryRepository.findById(event.getCategory_id()).orElse(null));
50
-        event.setOneSubcategory(subcategoryRepository.findById(event.getSubcategory_id()).orElse(null));
49
+        event.setVenue(venueRepository.findById(event.getVenue_id()).orElse(null));
50
+        event.setCategory(categoryRepository.findById(event.getCategory_id()).orElse(null));
51
+        event.setSubcategory(subcategoryRepository.findById(event.getSubcategory_id()).orElse(null));
51 52
         return event;
52 53
     }
54
+
55
+    @GetMapping("/events/{categoryId}")
56
+    public List<Event> getEventByCategory(@PathVariable long category_id) {
57
+        return null;
58
+    }
53 59
 }

+ 6
- 3
src/main/java/com/proximity/demo/eventbriteApi/Events/EventRepository.java Näytä tiedosto

@@ -1,13 +1,16 @@
1 1
 package com.proximity.demo.eventbriteApi.Events;
2 2
 
3
-import com.proximity.demo.eventbriteApi.Venues.Venue;
4 3
 import org.springframework.data.jpa.repository.JpaRepository;
5 4
 import org.springframework.stereotype.Repository;
6 5
 
6
+import java.util.List;
7
+
8
+
7 9
 @Repository
8 10
 public interface EventRepository extends JpaRepository<Event, Long> {
9 11
 
10
-    Event findByVenue(Venue venue);
11
-
12 12
     Event findByEventName(String name);
13
+
14
+    List<Event> findByCategory_Id(Long categoryId);
15
+
13 16
 }

+ 14
- 7
src/main/java/com/proximity/demo/eventbriteApi/Events/EventService.java Näytä tiedosto

@@ -5,6 +5,7 @@ import org.springframework.boot.web.client.RestTemplateBuilder;
5 5
 import org.springframework.core.ParameterizedTypeReference;
6 6
 import org.springframework.http.HttpMethod;
7 7
 import org.springframework.http.ResponseEntity;
8
+import org.springframework.scheduling.annotation.Async;
8 9
 import org.springframework.stereotype.Service;
9 10
 import org.springframework.web.client.RestTemplate;
10 11
 
@@ -12,7 +13,8 @@ import org.springframework.web.client.RestTemplate;
12 13
 @Service
13 14
 public class EventService{
14 15
 
15
-    private static final String token = "SMEZ5DGCKW5IDHS7HXNI";
16
+    private static final String mainUrl = "https://www.eventbriteapi.com/v3/";
17
+    private static final String token = "FW5VNKL6N5VMXKQO7TFV";
16 18
     private final RestTemplate restTemplate;
17 19
     private Event Event = new Event();
18 20
     private EventRepository eventRepository;
@@ -23,12 +25,17 @@ public class EventService{
23 25
         this.eventRepository = eventRepository;
24 26
     }
25 27
 
26
-    public Event getEventsInPhilly() {
27
-        String url = "https://www.eventbriteapi.com/v3/events/search/?"
28
-                + "token=" + token
29
-                + "&location.address=philadelphia";
30
-        EventWrapper wrapper = restTemplate.getForObject(url, EventWrapper.class);
31
-        eventRepository.saveAll(wrapper.getEvents());
28
+    @Async
29
+    public Event getPhillyEvents() {
30
+        for(int i = 1; i < 50; i++) {
31
+            String url = mainUrl
32
+                    + "events/search/"
33
+                    + "?token=" + token
34
+                    + "&location.address=philadelphia"
35
+                    + "&page=" + i;
36
+            EventWrapper wrapper = restTemplate.getForObject(url, EventWrapper.class);
37
+            eventRepository.saveAll((wrapper.getEvents()));
38
+        }
32 39
         return null;
33 40
     }
34 41
 

+ 0
- 67
src/main/java/com/proximity/demo/eventbriteApi/Marker/MarkerDTO.java Näytä tiedosto

@@ -1,67 +0,0 @@
1
-package com.proximity.demo.eventbriteApi.Marker;
2
-
3
-import com.proximity.demo.eventbriteApi.Categories.Category;
4
-import com.proximity.demo.eventbriteApi.Categories.CategoryRepository;
5
-import com.proximity.demo.eventbriteApi.Events.Event;
6
-import com.proximity.demo.eventbriteApi.Events.EventRepository;
7
-import com.proximity.demo.eventbriteApi.Subcategories.Subcategory;
8
-import com.proximity.demo.eventbriteApi.Subcategories.SubcategoryRepository;
9
-import com.proximity.demo.eventbriteApi.Venues.Venue;
10
-import com.proximity.demo.eventbriteApi.Venues.VenueRepository;
11
-import org.springframework.beans.factory.annotation.Autowired;
12
-
13
-import javax.persistence.Entity;
14
-import java.time.LocalDate;
15
-import java.time.LocalDateTime;
16
-import java.util.Collection;
17
-import java.util.Collections;
18
-import java.util.List;
19
-
20
-
21
-//@Entity
22
-public class MarkerDTO {
23
-
24
-    @Autowired
25
-    EventRepository er;
26
-
27
-    @Autowired
28
-    VenueRepository vr;
29
-
30
-    @Autowired
31
-    CategoryRepository cr;
32
-
33
-    @Autowired
34
-    SubcategoryRepository sr;
35
-
36
-    private Event event;
37
-    private Venue venue;
38
-    private Category category;
39
-    private Subcategory subcategory;
40
-
41
-    public MarkerDTO(Event event, Venue venue, Category category, Subcategory subcategory) {
42
-        this.event = event;
43
-        this.venue = venue;
44
-        this.category = category;
45
-        this.subcategory = subcategory;
46
-    }
47
-
48
-    public Event getEvent() { return event; }
49
-
50
-//    public void setEvent(Event event) { this.event = er.findAll(); }
51
-
52
-    public Venue getVenue() { return venue; }
53
-
54
-    public void setVenue(Venue venue) { this.venue = vr.findVenueByEvent(Collections.singletonList(getEvent())); }
55
-
56
-    public Category getCategory() { return category; }
57
-
58
-    public void setCategory(Category category) { this.category = null;
59
-//            cr.findCategoryByEvent(Collections.singletonList(getEvent()));
60
- }
61
-
62
-    public Subcategory getSubcategory() { return subcategory; }
63
-
64
-    public void setSubcategory(Subcategory subcategory) { this.subcategory = sr.findSubcategoryByEvent(Collections.singletonList(getEvent())); }
65
-}
66
-
67
-

+ 2
- 6
src/main/java/com/proximity/demo/eventbriteApi/Subcategories/Subcategory.java Näytä tiedosto

@@ -13,7 +13,7 @@ import java.util.Set;
13 13
 
14 14
 @Entity
15 15
 @JsonIgnoreProperties(ignoreUnknown = true)
16
-@Table(name="SUBCATEGORY")
16
+@Table(name="Subcategories")
17 17
 public class Subcategory {
18 18
 
19 19
     @Id
@@ -37,11 +37,7 @@ public class Subcategory {
37 37
         this.parent_id = Integer.valueOf((String)parent_category.get("id"));
38 38
     }
39 39
 
40
-//    @ManyToOne(fetch = FetchType.EAGER)
41
-//    @JoinColumn(name = "parent_id")
42
-//    private Category category;
43
-
44
-    @ManyToMany(mappedBy = "subcategory")
40
+    @OneToMany(mappedBy = "subcategory_id")
45 41
     private Set<Event> event = new HashSet<>();
46 42
 
47 43
 

+ 1
- 1
src/main/java/com/proximity/demo/eventbriteApi/Subcategories/SubcategoryService.java Näytä tiedosto

@@ -12,7 +12,7 @@ import java.util.List;
12 12
 @Service
13 13
 public class SubcategoryService {
14 14
 
15
-    private static final String token = "SMEZ5DGCKW5IDHS7HXNI";
15
+    private static final String token = "FW5VNKL6N5VMXKQO7TFV";
16 16
     private final RestTemplate restTemplate;
17 17
     private EventRepository eventRepository;
18 18
     private SubcategoryRepository subcategoryRepository;

+ 8
- 3
src/main/java/com/proximity/demo/eventbriteApi/Venues/Venue.java Näytä tiedosto

@@ -1,6 +1,8 @@
1 1
 package com.proximity.demo.eventbriteApi.Venues;
2 2
 
3
+import com.fasterxml.jackson.annotation.JsonIgnore;
3 4
 import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
5
+import com.fasterxml.jackson.annotation.JsonIgnoreType;
4 6
 import com.fasterxml.jackson.annotation.JsonProperty;
5 7
 import com.proximity.demo.eventbriteApi.Events.Event;
6 8
 
@@ -12,7 +14,7 @@ import java.util.Set;
12 14
 
13 15
 @Entity
14 16
 @JsonIgnoreProperties(ignoreUnknown = true)
15
-@Table(name="VENUE")
17
+@Table(name="venues")
16 18
 public class Venue implements Serializable {
17 19
 
18 20
     @Id
@@ -29,10 +31,13 @@ public class Venue implements Serializable {
29 31
     private String longitude;
30 32
     private String localized_multi_line_address_display;
31 33
     private String resource_uri;
34
+    @JsonIgnore
32 35
     private int age_restriction;
33 36
     private int capacity;
34 37
 
35
-    public Venue() { }
38
+    public Venue() {
39
+
40
+    }
36 41
 
37 42
     public Venue(String name, String address_1, String address_2, String city, String region,
38 43
                  String postal_code, String country, String latitude, String longitude,
@@ -65,7 +70,7 @@ public class Venue implements Serializable {
65 70
         this.country = (String) address.get("country");
66 71
     }
67 72
 
68
-    @ManyToMany(mappedBy = "venue", fetch = FetchType.EAGER)
73
+    @OneToMany(mappedBy = "venue_id", fetch = FetchType.EAGER)
69 74
     private Set<Event> event = new HashSet<>();
70 75
 
71 76
     public Long getId() { return id; }

+ 18
- 2
src/main/java/com/proximity/demo/eventbriteApi/Venues/VenueController.java Näytä tiedosto

@@ -1,11 +1,14 @@
1 1
 package com.proximity.demo.eventbriteApi.Venues;
2 2
 
3 3
 import org.springframework.beans.factory.annotation.Autowired;
4
+import org.springframework.scheduling.annotation.Async;
4 5
 import org.springframework.web.bind.annotation.CrossOrigin;
5 6
 import org.springframework.web.bind.annotation.GetMapping;
7
+import org.springframework.web.bind.annotation.PathVariable;
6 8
 import org.springframework.web.bind.annotation.RestController;
7 9
 
8 10
 import java.util.List;
11
+import java.util.Optional;
9 12
 
10 13
 @RestController
11 14
 @CrossOrigin
@@ -17,9 +20,22 @@ public class VenueController {
17 20
     @Autowired
18 21
     private VenueRepository venueRepository;
19 22
 
23
+    @Async
20 24
     @GetMapping("/venues")
21
-    public List<Venue> getAll() {
22
-        venueService.getEventVenue();
25
+    public Venue getAll() {
26
+        return venueService.getEventVenue();
27
+    }
28
+
29
+    @GetMapping("/venue")
30
+    public List<Venue> getVenue() {
23 31
         return venueRepository.findAll();
24 32
     }
33
+
34
+    @GetMapping("/venues/{id}")
35
+    public Optional<Venue> get(@PathVariable long id) {
36
+        System.out.println(id);
37
+        System.out.println(venueRepository.findByName("Monumental Baptist Church"));
38
+        return venueRepository.findById(id);
39
+    }
40
+
25 41
 }

+ 2
- 1
src/main/java/com/proximity/demo/eventbriteApi/Venues/VenueRepository.java Näytä tiedosto

@@ -9,7 +9,8 @@ import java.util.List;
9 9
 @Repository
10 10
 public interface VenueRepository extends JpaRepository<Venue, Long> {
11 11
 
12
-    Venue findVenueByEvent(List<Event> Event);
12
+
13
+//    Venue findVenueByEvent(List<Event> Event);
13 14
 
14 15
     Venue findByName(String name);
15 16
 

+ 4
- 6
src/main/java/com/proximity/demo/eventbriteApi/Venues/VenueService.java Näytä tiedosto

@@ -4,6 +4,7 @@ import com.proximity.demo.eventbriteApi.Events.Event;
4 4
 import com.proximity.demo.eventbriteApi.Events.EventRepository;
5 5
 import org.springframework.beans.factory.annotation.Autowired;
6 6
 import org.springframework.boot.web.client.RestTemplateBuilder;
7
+import org.springframework.scheduling.annotation.Async;
7 8
 import org.springframework.stereotype.Service;
8 9
 import org.springframework.web.client.RestTemplate;
9 10
 
@@ -13,7 +14,7 @@ import java.util.List;
13 14
 @Service
14 15
 public class VenueService {
15 16
 
16
-    private static final String token = "SMEZ5DGCKW5IDHS7HXNI";
17
+    private static final String token = "FW5VNKL6N5VMXKQO7TFV";
17 18
     private final RestTemplate restTemplate;
18 19
     private Venue venue = new Venue();
19 20
     private EventRepository eventRepository;
@@ -26,18 +27,15 @@ public class VenueService {
26 27
         this.venueRepository = venueRepository;
27 28
     }
28 29
 
30
+    @Async
29 31
     public Venue getEventVenue(){
30 32
         List<Event> events = new ArrayList<>(eventRepository.findAll());
31
-        for(int i = 0; i < events.size() - 1; i++) {
33
+        for(int i = 0; i < events.size(); i++) {
32 34
             Long venue_id = events.get(i).getVenue_id();
33
-
34
-            //check to see if the venue exist by the id, if it doesn't then save it
35
-
36 35
             String url = "https://www.eventbriteapi.com/v3/venues/"
37 36
                     + venue_id
38 37
                     + "?token=" + token;
39 38
             Venue venue = restTemplate.getForObject(url, Venue.class);
40
-
41 39
             venueRepository.save(venue);
42 40
         }
43 41
         return null;

+ 2
- 0
src/main/resources/application.properties Näytä tiedosto

@@ -2,4 +2,6 @@ spring.datasource.url= jdbc:mysql://localhost:3306/proximity?useSSL=False
2 2
 spring.datasource.username=jdot2791
3 3
 spring.datasource.password=molonlabe27
4 4
 spring.jpa.show-sql=true
5
+jdbcCompliantTruncation=false&zeroDateTimeBehavior=convertToNull&characterEncoding=UTF-8
5 6
 spring.jpa.hibernate.ddl-auto=update
7
+

+ 0
- 6
src/test/java/com/proximity/demo/eventbriteApi/Events/eventServiceTest.java Näytä tiedosto

@@ -10,10 +10,4 @@ public class eventServiceTest {
10 10
     @Autowired
11 11
     EventService eventService;
12 12
 
13
-    @Test
14
-    public void getEventsInPhilly() {
15
-        Event expected = eventService.save(new Event());
16
-        Event actual = eventService.save(eventService.getEventsInPhilly());
17
-        assertEquals(expected, actual);
18 13
     }
19
-}