@@ -798,32 +798,24 @@ public void geosearch() {
798
798
contains (0L ));
799
799
}
800
800
801
- @ Test
802
- public void geosearchNegative () {
803
- // combine byradius and bybox
804
- pipe .geosearch ("barcelona" ,
805
- new GeoSearchParam ().byRadius (3000 , GeoUnit .M ).byBox (300 , 300 , GeoUnit .M ));
806
-
807
- // without frommember and without fromlonlat
808
- pipe .geosearch ("barcelona" ,
809
- new GeoSearchParam ().byRadius (10 , GeoUnit .MI ));
801
+ @ Test (expected = IllegalArgumentException .class )
802
+ public void geosearchSearchParamCombineFromMemberAndFromLonLat () {
803
+ pipe .geosearch ("barcelona" , new GeoSearchParam ().fromMember ("foobar" ).fromLonLat (10 , 10 ));
804
+ }
810
805
811
- assertThat (pipe .syncAndReturnAll (), contains (
812
- instanceOf (JedisDataException .class ),
813
- instanceOf (JedisDataException .class )
814
- ));
806
+ @ Test (expected = IllegalArgumentException .class )
807
+ public void geosearchSearchParamWithoutFromMemberAndFromLonLat () {
808
+ pipe .geosearch ("barcelona" , new GeoSearchParam ().byRadius (10 , GeoUnit .MI ));
815
809
}
816
810
817
811
@ Test (expected = IllegalArgumentException .class )
818
- public void geosearchSearchParamWithoutRadiousAndWithoutBox () {
819
- pipe .geosearch ("barcelona" ,
820
- new GeoSearchParam ().fromMember ("foobar" ));
812
+ public void geosearchSearchParamCombineByRadiousAndByBox () {
813
+ pipe .geosearch ("barcelona" , new GeoSearchParam ().byRadius (3000 , GeoUnit .M ).byBox (300 , 300 , GeoUnit .M ));
821
814
}
822
815
823
816
@ Test (expected = IllegalArgumentException .class )
824
- public void geosearchSearchParamCombineMemberAndLonLat () {
825
- pipe .geosearch ("barcelona" ,
826
- new GeoSearchParam ().fromMember ("foobar" ).fromLonLat (10 , 10 ));
817
+ public void geosearchSearchParamWithoutByRadiousAndByBox () {
818
+ pipe .geosearch ("barcelona" , new GeoSearchParam ().fromMember ("foobar" ));
827
819
}
828
820
829
821
@ Test
0 commit comments