@@ -159,6 +159,10 @@ private void getRecommendationURNFormat(String mediaURN, boolean isAvailable) th
159
159
mvc .perform (get ("/api/v1/playlist/recommendation/" + purpose + "/" + mediaURN ).param ("standalone" , "false" ).param ("format" , format )).andExpect (status ().isOk ()).andExpect (jsonPath ("$" ).isArray ());
160
160
mvc .perform (get ("/api/v1/playlist/recommendation/" + purpose + "/" + mediaURN ).param ("standalone" , "true" ).param ("format" , format )).andExpect (status ().isOk ()).andExpect (jsonPath ("$" ).isArray ());
161
161
162
+ mvc .perform (get ("/api/v1/playlist/recommendation/" + purpose + "/" + mediaURN + ".json" ).param ("format" , format )).andExpect (status ().isOk ()).andExpect (jsonPath ("$" ).isArray ());
163
+ mvc .perform (get ("/api/v1/playlist/recommendation/" + purpose + "/" + mediaURN + ".json" ).param ("standalone" , "false" ).param ("format" , format )).andExpect (status ().isOk ()).andExpect (jsonPath ("$" ).isArray ());
164
+ mvc .perform (get ("/api/v1/playlist/recommendation/" + purpose + "/" + mediaURN + ".json" ).param ("standalone" , "true" ).param ("format" , format )).andExpect (status ().isOk ()).andExpect (jsonPath ("$" ).isArray ());
165
+
162
166
mvc .perform (get ("/api/v1/playlist/recommendation/" + purpose + "/" + mediaURN ).param ("format" , format )).andExpect (status ().isOk ()).andExpect (isAvailable ? jsonPath ("$[0]" ).value (mediaURN ) : jsonPath ("$" ).isEmpty ());
163
167
mvc .perform (get ("/api/v1/playlist/recommendation/" + purpose + "/" + mediaURN ).param ("standalone" , "false" ).param ("format" , format )).andExpect (isAvailable ? jsonPath ("$[0]" ).value (mediaURN ) : jsonPath ("$" ).isEmpty ());
164
168
mvc .perform (get ("/api/v1/playlist/recommendation/" + purpose + "/" + mediaURN ).param ("standalone" , "true" ).param ("format" , format )).andExpect (isAvailable ? jsonPath ("$[0]" ).value (mediaURN ) : jsonPath ("$" ).isEmpty ());
@@ -167,6 +171,10 @@ private void getRecommendationURNFormat(String mediaURN, boolean isAvailable) th
167
171
mvc .perform (get ("/api/v2/playlist/recommendation/" + purpose + "/" + mediaURN ).param ("standalone" , "false" )).andExpect (status ().isOk ()).andExpect (jsonPath ("$" ).isMap ());
168
172
mvc .perform (get ("/api/v2/playlist/recommendation/" + purpose + "/" + mediaURN ).param ("standalone" , "true" )).andExpect (status ().isOk ()).andExpect (jsonPath ("$" ).isMap ());
169
173
174
+ mvc .perform (get ("/api/v2/playlist/recommendation/" + purpose + "/" + mediaURN + ".json" )).andExpect (status ().isOk ()).andExpect (jsonPath ("$" ).isMap ());
175
+ mvc .perform (get ("/api/v2/playlist/recommendation/" + purpose + "/" + mediaURN + ".json" ).param ("standalone" , "false" )).andExpect (status ().isOk ()).andExpect (jsonPath ("$" ).isMap ());
176
+ mvc .perform (get ("/api/v2/playlist/recommendation/" + purpose + "/" + mediaURN + ".json" ).param ("standalone" , "true" )).andExpect (status ().isOk ()).andExpect (jsonPath ("$" ).isMap ());
177
+
170
178
mvc .perform (get ("/api/v2/playlist/recommendation/" + purpose + "/" + mediaURN )).andExpect (status ().isOk ()).andExpect (isAvailable ? jsonPath ("$.urns[0]" ).value (mediaURN ) : jsonPath ("$.urns" ).isEmpty ());
171
179
mvc .perform (get ("/api/v2/playlist/recommendation/" + purpose + "/" + mediaURN ).param ("standalone" , "false" )).andExpect (isAvailable ? jsonPath ("$.urns[0]" ).value (mediaURN ) : jsonPath ("$.urns" ).isEmpty ());
172
180
mvc .perform (get ("/api/v2/playlist/recommendation/" + purpose + "/" + mediaURN ).param ("standalone" , "true" )).andExpect (isAvailable ? jsonPath ("$.urns[0]" ).value (mediaURN ) : jsonPath ("$.urns" ).isEmpty ());
0 commit comments