target
stringlengths
20
113k
src_fm
stringlengths
11
86.3k
src_fm_fc
stringlengths
21
86.4k
src_fm_fc_co
stringlengths
30
86.4k
src_fm_fc_ms
stringlengths
42
86.8k
src_fm_fc_ms_ff
stringlengths
43
86.8k
@Test public void testLogin() throws AVException { AVUser user = AVUser.logIn(DEFAULT_TEST_USER_NAME, DEFAULT_TEST_USER_PWD); Assert.assertEquals(user.getUsername(), DEFAULT_TEST_USER_NAME); Assert.assertNotNull(user.getSessionToken()); Assert.assertEquals(user.get(DEFAULT_TEST_USER_CUSTOM_KEY), DEFAULT_TEST_USER_CUSTO...
public static AVUser logIn(String username, String password) throws AVException { return logIn(username, password, AVUser.class); }
AVUser extends AVObject { public static AVUser logIn(String username, String password) throws AVException { return logIn(username, password, AVUser.class); } }
AVUser extends AVObject { public static AVUser logIn(String username, String password) throws AVException { return logIn(username, password, AVUser.class); } AVUser(); AVUser(Parcel in); }
AVUser extends AVObject { public static AVUser logIn(String username, String password) throws AVException { return logIn(username, password, AVUser.class); } AVUser(); AVUser(Parcel in); String getFacebookToken(); String getTwitterToken(); String getQqWeiboToken(); static void enableAutomaticUser(); static boolean isE...
AVUser extends AVObject { public static AVUser logIn(String username, String password) throws AVException { return logIn(username, password, AVUser.class); } AVUser(); AVUser(Parcel in); String getFacebookToken(); String getTwitterToken(); String getQqWeiboToken(); static void enableAutomaticUser(); static boolean isE...
@Test public void testLogInInBackground() { final CountDownLatch latch = new CountDownLatch(1); AVUser.logInInBackground(DEFAULT_TEST_USER_NAME, DEFAULT_TEST_USER_PWD, new LogInCallback<AVUser>() { @Override public void done(AVUser user, AVException e) { Assert.assertNull(e); Assert.assertEquals(user.getUsername(), DEF...
public static void logInInBackground(String username, String password, LogInCallback<AVUser> callback) { logInInBackground(username, password, callback, AVUser.class); }
AVUser extends AVObject { public static void logInInBackground(String username, String password, LogInCallback<AVUser> callback) { logInInBackground(username, password, callback, AVUser.class); } }
AVUser extends AVObject { public static void logInInBackground(String username, String password, LogInCallback<AVUser> callback) { logInInBackground(username, password, callback, AVUser.class); } AVUser(); AVUser(Parcel in); }
AVUser extends AVObject { public static void logInInBackground(String username, String password, LogInCallback<AVUser> callback) { logInInBackground(username, password, callback, AVUser.class); } AVUser(); AVUser(Parcel in); String getFacebookToken(); String getTwitterToken(); String getQqWeiboToken(); static void ena...
AVUser extends AVObject { public static void logInInBackground(String username, String password, LogInCallback<AVUser> callback) { logInInBackground(username, password, callback, AVUser.class); } AVUser(); AVUser(Parcel in); String getFacebookToken(); String getTwitterToken(); String getQqWeiboToken(); static void ena...
@Test public void testBecomeWithSessionToken() throws AVException { AVUser user = AVUser.logIn(DEFAULT_TEST_USER_NAME, DEFAULT_TEST_USER_PWD); AVUser newUser = AVUser.becomeWithSessionToken(user.getSessionToken()); Assert.assertEquals(user, newUser); }
public static AVUser becomeWithSessionToken(String sessionToken) throws AVException { return becomeWithSessionToken(sessionToken, AVUser.class); }
AVUser extends AVObject { public static AVUser becomeWithSessionToken(String sessionToken) throws AVException { return becomeWithSessionToken(sessionToken, AVUser.class); } }
AVUser extends AVObject { public static AVUser becomeWithSessionToken(String sessionToken) throws AVException { return becomeWithSessionToken(sessionToken, AVUser.class); } AVUser(); AVUser(Parcel in); }
AVUser extends AVObject { public static AVUser becomeWithSessionToken(String sessionToken) throws AVException { return becomeWithSessionToken(sessionToken, AVUser.class); } AVUser(); AVUser(Parcel in); String getFacebookToken(); String getTwitterToken(); String getQqWeiboToken(); static void enableAutomaticUser(); sta...
AVUser extends AVObject { public static AVUser becomeWithSessionToken(String sessionToken) throws AVException { return becomeWithSessionToken(sessionToken, AVUser.class); } AVUser(); AVUser(Parcel in); String getFacebookToken(); String getTwitterToken(); String getQqWeiboToken(); static void enableAutomaticUser(); sta...
@Test public void testGetRoles() throws AVException { AVUser user = AVUser.logIn(DEFAULT_TEST_USER_NAME, DEFAULT_TEST_USER_PWD); AVQuery<AVRole> roleQuery = new AVQuery<AVRole>(AVRole.className); roleQuery.whereEqualTo(AVUser.AVUSER_ENDPOINT, user); List<AVRole> roleList = roleQuery.find(); Assert.assertNotNull(roleLis...
@JSONField(serialize = false) public List<AVRole> getRoles() throws AVException { AVQuery<AVRole> roleQuery = new AVQuery<AVRole>(AVRole.className); roleQuery.whereEqualTo(AVUser.AVUSER_ENDPOINT, this); return roleQuery.find(); }
AVUser extends AVObject { @JSONField(serialize = false) public List<AVRole> getRoles() throws AVException { AVQuery<AVRole> roleQuery = new AVQuery<AVRole>(AVRole.className); roleQuery.whereEqualTo(AVUser.AVUSER_ENDPOINT, this); return roleQuery.find(); } }
AVUser extends AVObject { @JSONField(serialize = false) public List<AVRole> getRoles() throws AVException { AVQuery<AVRole> roleQuery = new AVQuery<AVRole>(AVRole.className); roleQuery.whereEqualTo(AVUser.AVUSER_ENDPOINT, this); return roleQuery.find(); } AVUser(); AVUser(Parcel in); }
AVUser extends AVObject { @JSONField(serialize = false) public List<AVRole> getRoles() throws AVException { AVQuery<AVRole> roleQuery = new AVQuery<AVRole>(AVRole.className); roleQuery.whereEqualTo(AVUser.AVUSER_ENDPOINT, this); return roleQuery.find(); } AVUser(); AVUser(Parcel in); String getFacebookToken(); String ...
AVUser extends AVObject { @JSONField(serialize = false) public List<AVRole> getRoles() throws AVException { AVQuery<AVRole> roleQuery = new AVQuery<AVRole>(AVRole.className); roleQuery.whereEqualTo(AVUser.AVUSER_ENDPOINT, this); return roleQuery.find(); } AVUser(); AVUser(Parcel in); String getFacebookToken(); String ...
@Test public void getRolesInBackground() throws Exception { AVUser user = AVUser.logIn(DEFAULT_TEST_USER_NAME, DEFAULT_TEST_USER_PWD); AVQuery<AVRole> roleQuery = new AVQuery<AVRole>(AVRole.className); roleQuery.whereEqualTo(AVUser.AVUSER_ENDPOINT, user); final CountDownLatch latch = new CountDownLatch(1); roleQuery.fi...
public void getRolesInBackground(final AVCallback<List<AVRole>> callback) { AVQuery<AVRole> roleQuery = new AVQuery<AVRole>(AVRole.className); roleQuery.whereEqualTo(AVUSER_ENDPOINT, this); roleQuery.findInBackground(new FindCallback<AVRole>() { @Override public void done(List<AVRole> list, AVException e) { callback.in...
AVUser extends AVObject { public void getRolesInBackground(final AVCallback<List<AVRole>> callback) { AVQuery<AVRole> roleQuery = new AVQuery<AVRole>(AVRole.className); roleQuery.whereEqualTo(AVUSER_ENDPOINT, this); roleQuery.findInBackground(new FindCallback<AVRole>() { @Override public void done(List<AVRole> list, AV...
AVUser extends AVObject { public void getRolesInBackground(final AVCallback<List<AVRole>> callback) { AVQuery<AVRole> roleQuery = new AVQuery<AVRole>(AVRole.className); roleQuery.whereEqualTo(AVUSER_ENDPOINT, this); roleQuery.findInBackground(new FindCallback<AVRole>() { @Override public void done(List<AVRole> list, AV...
AVUser extends AVObject { public void getRolesInBackground(final AVCallback<List<AVRole>> callback) { AVQuery<AVRole> roleQuery = new AVQuery<AVRole>(AVRole.className); roleQuery.whereEqualTo(AVUSER_ENDPOINT, this); roleQuery.findInBackground(new FindCallback<AVRole>() { @Override public void done(List<AVRole> list, AV...
AVUser extends AVObject { public void getRolesInBackground(final AVCallback<List<AVRole>> callback) { AVQuery<AVRole> roleQuery = new AVQuery<AVRole>(AVRole.className); roleQuery.whereEqualTo(AVUSER_ENDPOINT, this); roleQuery.findInBackground(new FindCallback<AVRole>() { @Override public void done(List<AVRole> list, AV...
@Test public void testRefreshSessionToken() throws AVException { AVUser.alwaysUseSubUserClass(ChildAVUser.class); AVUser.registerSubclass(ChildAVUser.class); AVUser user = AVUser.logIn(DEFAULT_TEST_USER_NAME, DEFAULT_TEST_USER_PWD, ChildAVUser.class); AVUser newUser = user.refreshSessionToken(); Assert.assertNotNull(ne...
public <T extends AVUser> T refreshSessionToken() { final ArrayList<T> arrayList = new ArrayList<>(); refreshSessionToken(true, new LogInCallback<T>(){ @Override public void done(T user, AVException e) { if (e != null) { AVExceptionHolder.add(e); } else { arrayList.add(user); } } }); return arrayList.get(0); }
AVUser extends AVObject { public <T extends AVUser> T refreshSessionToken() { final ArrayList<T> arrayList = new ArrayList<>(); refreshSessionToken(true, new LogInCallback<T>(){ @Override public void done(T user, AVException e) { if (e != null) { AVExceptionHolder.add(e); } else { arrayList.add(user); } } }); return ar...
AVUser extends AVObject { public <T extends AVUser> T refreshSessionToken() { final ArrayList<T> arrayList = new ArrayList<>(); refreshSessionToken(true, new LogInCallback<T>(){ @Override public void done(T user, AVException e) { if (e != null) { AVExceptionHolder.add(e); } else { arrayList.add(user); } } }); return ar...
AVUser extends AVObject { public <T extends AVUser> T refreshSessionToken() { final ArrayList<T> arrayList = new ArrayList<>(); refreshSessionToken(true, new LogInCallback<T>(){ @Override public void done(T user, AVException e) { if (e != null) { AVExceptionHolder.add(e); } else { arrayList.add(user); } } }); return ar...
AVUser extends AVObject { public <T extends AVUser> T refreshSessionToken() { final ArrayList<T> arrayList = new ArrayList<>(); refreshSessionToken(true, new LogInCallback<T>(){ @Override public void done(T user, AVException e) { if (e != null) { AVExceptionHolder.add(e); } else { arrayList.add(user); } } }); return ar...
@Test public void testRequestCaptchaInBackground() throws AVException { final CountDownLatch latch = new CountDownLatch(1); AVCaptchaOption option = new AVCaptchaOption(); option.setWidth(200); option.setHeight(100); AVCaptcha.requestCaptchaInBackground(option, new AVCallback<AVCaptchaDigest>() { @Override protected vo...
public static void requestCaptchaInBackground(AVCaptchaOption option, final AVCallback<AVCaptchaDigest> callback) { if (null == callback) { return; } PaasClient.storageInstance().getObject("requestCaptcha", getOptionParams(option), false, null, new GenericObjectCallback() { @Override public void onSuccess(String conten...
AVCaptcha { public static void requestCaptchaInBackground(AVCaptchaOption option, final AVCallback<AVCaptchaDigest> callback) { if (null == callback) { return; } PaasClient.storageInstance().getObject("requestCaptcha", getOptionParams(option), false, null, new GenericObjectCallback() { @Override public void onSuccess(S...
AVCaptcha { public static void requestCaptchaInBackground(AVCaptchaOption option, final AVCallback<AVCaptchaDigest> callback) { if (null == callback) { return; } PaasClient.storageInstance().getObject("requestCaptcha", getOptionParams(option), false, null, new GenericObjectCallback() { @Override public void onSuccess(S...
AVCaptcha { public static void requestCaptchaInBackground(AVCaptchaOption option, final AVCallback<AVCaptchaDigest> callback) { if (null == callback) { return; } PaasClient.storageInstance().getObject("requestCaptcha", getOptionParams(option), false, null, new GenericObjectCallback() { @Override public void onSuccess(S...
AVCaptcha { public static void requestCaptchaInBackground(AVCaptchaOption option, final AVCallback<AVCaptchaDigest> callback) { if (null == callback) { return; } PaasClient.storageInstance().getObject("requestCaptcha", getOptionParams(option), false, null, new GenericObjectCallback() { @Override public void onSuccess(S...
@Test public void testAVObjectDeserialize() { String data = "{\n" + " \"image\": {\n" + " \"bucket\": \"xtuccgoj\",\n" + " \"metaData\": {\n" + " \"owner\": \"unknown\",\n" + " \"size\": 12382\n" + " },\n" + " \"createdAt\": \"2019-06-22T07:18:09.584Z\",\n" + " \"mime_type\": \"image/jpeg\",\n" + " \"__type\": \"File\"...
private static Object parseObject(Object object) { if (object == null) { return null; } else if (object instanceof Map) { return getParsedMap((Map<String, Object>) object); } else if (object instanceof Collection) { return getParsedList((Collection) object); } else if (object instanceof AVObject) { return ((AVObject) o...
AVObject implements Parcelable { private static Object parseObject(Object object) { if (object == null) { return null; } else if (object instanceof Map) { return getParsedMap((Map<String, Object>) object); } else if (object instanceof Collection) { return getParsedList((Collection) object); } else if (object instanceof...
AVObject implements Parcelable { private static Object parseObject(Object object) { if (object == null) { return null; } else if (object instanceof Map) { return getParsedMap((Map<String, Object>) object); } else if (object instanceof Collection) { return getParsedList((Collection) object); } else if (object instanceof...
AVObject implements Parcelable { private static Object parseObject(Object object) { if (object == null) { return null; } else if (object instanceof Map) { return getParsedMap((Map<String, Object>) object); } else if (object instanceof Collection) { return getParsedList((Collection) object); } else if (object instanceof...
AVObject implements Parcelable { private static Object parseObject(Object object) { if (object == null) { return null; } else if (object instanceof Map) { return getParsedMap((Map<String, Object>) object); } else if (object instanceof Collection) { return getParsedList((Collection) object); } else if (object instanceof...
@Test public void testAVFile() { AVFile file = new AVFile(); Assert.assertNotNull(file); }
public AVFile() { super(); if (PaasClient.storageInstance().getDefaultACL() != null) { acl = new AVACL(PaasClient.storageInstance().getDefaultACL()); } }
AVFile { public AVFile() { super(); if (PaasClient.storageInstance().getDefaultACL() != null) { acl = new AVACL(PaasClient.storageInstance().getDefaultACL()); } } }
AVFile { public AVFile() { super(); if (PaasClient.storageInstance().getDefaultACL() != null) { acl = new AVACL(PaasClient.storageInstance().getDefaultACL()); } } AVFile(); @Deprecated AVFile(byte[] data); AVFile(String name, String url, Map<String, Object> metaData); protected AVFile(String name, String url, Map<St...
AVFile { public AVFile() { super(); if (PaasClient.storageInstance().getDefaultACL() != null) { acl = new AVACL(PaasClient.storageInstance().getDefaultACL()); } } AVFile(); @Deprecated AVFile(byte[] data); AVFile(String name, String url, Map<String, Object> metaData); protected AVFile(String name, String url, Map<St...
AVFile { public AVFile() { super(); if (PaasClient.storageInstance().getDefaultACL() != null) { acl = new AVACL(PaasClient.storageInstance().getDefaultACL()); } } AVFile(); @Deprecated AVFile(byte[] data); AVFile(String name, String url, Map<String, Object> metaData); protected AVFile(String name, String url, Map<St...
@Test public void testSetObjectId() { String objectId = "testObjectId"; AVFile file = new AVFile(); file.setObjectId(objectId); Assert.assertEquals(objectId, file.getObjectId()); }
public void setObjectId(String objectId) { this.objectId = objectId; }
AVFile { public void setObjectId(String objectId) { this.objectId = objectId; } }
AVFile { public void setObjectId(String objectId) { this.objectId = objectId; } AVFile(); @Deprecated AVFile(byte[] data); AVFile(String name, String url, Map<String, Object> metaData); protected AVFile(String name, String url, Map<String, Object> metaData, boolean external); AVFile(String name, byte[] data); prote...
AVFile { public void setObjectId(String objectId) { this.objectId = objectId; } AVFile(); @Deprecated AVFile(byte[] data); AVFile(String name, String url, Map<String, Object> metaData); protected AVFile(String name, String url, Map<String, Object> metaData, boolean external); AVFile(String name, byte[] data); prote...
AVFile { public void setObjectId(String objectId) { this.objectId = objectId; } AVFile(); @Deprecated AVFile(byte[] data); AVFile(String name, String url, Map<String, Object> metaData); protected AVFile(String name, String url, Map<String, Object> metaData, boolean external); AVFile(String name, byte[] data); prote...
@Test public void testAddMetaData() { AVFile file = new AVFile(); file.addMetaData("key", "value"); Assert.assertEquals(file.getMetaData("key"), "value"); }
public Object addMetaData(String key, Object val) { return metaData.put(key, val); }
AVFile { public Object addMetaData(String key, Object val) { return metaData.put(key, val); } }
AVFile { public Object addMetaData(String key, Object val) { return metaData.put(key, val); } AVFile(); @Deprecated AVFile(byte[] data); AVFile(String name, String url, Map<String, Object> metaData); protected AVFile(String name, String url, Map<String, Object> metaData, boolean external); AVFile(String name, byte[...
AVFile { public Object addMetaData(String key, Object val) { return metaData.put(key, val); } AVFile(); @Deprecated AVFile(byte[] data); AVFile(String name, String url, Map<String, Object> metaData); protected AVFile(String name, String url, Map<String, Object> metaData, boolean external); AVFile(String name, byte[...
AVFile { public Object addMetaData(String key, Object val) { return metaData.put(key, val); } AVFile(); @Deprecated AVFile(byte[] data); AVFile(String name, String url, Map<String, Object> metaData); protected AVFile(String name, String url, Map<String, Object> metaData, boolean external); AVFile(String name, byte[...
@Test public void testGetMetaData() { AVFile file = new AVFile("name", TEST_FILE_CONTENT.getBytes()); Assert.assertNotNull(file.getMetaData()); }
public HashMap<String, Object> getMetaData() { return metaData; }
AVFile { public HashMap<String, Object> getMetaData() { return metaData; } }
AVFile { public HashMap<String, Object> getMetaData() { return metaData; } AVFile(); @Deprecated AVFile(byte[] data); AVFile(String name, String url, Map<String, Object> metaData); protected AVFile(String name, String url, Map<String, Object> metaData, boolean external); AVFile(String name, byte[] data); protected ...
AVFile { public HashMap<String, Object> getMetaData() { return metaData; } AVFile(); @Deprecated AVFile(byte[] data); AVFile(String name, String url, Map<String, Object> metaData); protected AVFile(String name, String url, Map<String, Object> metaData, boolean external); AVFile(String name, byte[] data); protected ...
AVFile { public HashMap<String, Object> getMetaData() { return metaData; } AVFile(); @Deprecated AVFile(byte[] data); AVFile(String name, String url, Map<String, Object> metaData); protected AVFile(String name, String url, Map<String, Object> metaData, boolean external); AVFile(String name, byte[] data); protected ...
@Test public void testGetSize() { AVFile file = new AVFile("name", TEST_FILE_CONTENT.getBytes()); Assert.assertEquals(file.getSize(), TEST_FILE_CONTENT.length()); }
public int getSize() { Number size = (Number) getMetaData("size"); if (size != null) return size.intValue(); else return -1; }
AVFile { public int getSize() { Number size = (Number) getMetaData("size"); if (size != null) return size.intValue(); else return -1; } }
AVFile { public int getSize() { Number size = (Number) getMetaData("size"); if (size != null) return size.intValue(); else return -1; } AVFile(); @Deprecated AVFile(byte[] data); AVFile(String name, String url, Map<String, Object> metaData); protected AVFile(String name, String url, Map<String, Object> metaData, boo...
AVFile { public int getSize() { Number size = (Number) getMetaData("size"); if (size != null) return size.intValue(); else return -1; } AVFile(); @Deprecated AVFile(byte[] data); AVFile(String name, String url, Map<String, Object> metaData); protected AVFile(String name, String url, Map<String, Object> metaData, boo...
AVFile { public int getSize() { Number size = (Number) getMetaData("size"); if (size != null) return size.intValue(); else return -1; } AVFile(); @Deprecated AVFile(byte[] data); AVFile(String name, String url, Map<String, Object> metaData); protected AVFile(String name, String url, Map<String, Object> metaData, boo...
@Test public void testZeroAdapterSize(){ Assert.assertTrue(mAdapter.isEmpty()); }
public boolean isEmpty() { return mSnackbarViews == null || mSnackbarViews.size() == 0; }
SnackbarAdapter extends RecyclerView.Adapter<SnackbarAdapter.ViewHolder> { public boolean isEmpty() { return mSnackbarViews == null || mSnackbarViews.size() == 0; } }
SnackbarAdapter extends RecyclerView.Adapter<SnackbarAdapter.ViewHolder> { public boolean isEmpty() { return mSnackbarViews == null || mSnackbarViews.size() == 0; } }
SnackbarAdapter extends RecyclerView.Adapter<SnackbarAdapter.ViewHolder> { public boolean isEmpty() { return mSnackbarViews == null || mSnackbarViews.size() == 0; } @Override ViewHolder onCreateViewHolder(ViewGroup parent, int position); @Override void onBindViewHolder(ViewHolder holder, int position); @Override int g...
SnackbarAdapter extends RecyclerView.Adapter<SnackbarAdapter.ViewHolder> { public boolean isEmpty() { return mSnackbarViews == null || mSnackbarViews.size() == 0; } @Override ViewHolder onCreateViewHolder(ViewGroup parent, int position); @Override void onBindViewHolder(ViewHolder holder, int position); @Override int g...
@Test public void testOnCreateViewHolder() throws Exception { mAdapter.addItem(viewMock); PowerMockito.whenNew(SnackbarAdapter.ViewHolder.class).withAnyArguments().thenReturn(mViewHolder); mAdapter.onCreateViewHolder(null, 0); Mockito.verify(viewMock, Mockito.times(1)).onCreateView(null); }
@Override public ViewHolder onCreateViewHolder(ViewGroup parent, int position) { View view = mSnackbarViews.get(position).onCreateView(parent); ViewHolder viewHolder = new ViewHolder(view); return viewHolder; }
SnackbarAdapter extends RecyclerView.Adapter<SnackbarAdapter.ViewHolder> { @Override public ViewHolder onCreateViewHolder(ViewGroup parent, int position) { View view = mSnackbarViews.get(position).onCreateView(parent); ViewHolder viewHolder = new ViewHolder(view); return viewHolder; } }
SnackbarAdapter extends RecyclerView.Adapter<SnackbarAdapter.ViewHolder> { @Override public ViewHolder onCreateViewHolder(ViewGroup parent, int position) { View view = mSnackbarViews.get(position).onCreateView(parent); ViewHolder viewHolder = new ViewHolder(view); return viewHolder; } }
SnackbarAdapter extends RecyclerView.Adapter<SnackbarAdapter.ViewHolder> { @Override public ViewHolder onCreateViewHolder(ViewGroup parent, int position) { View view = mSnackbarViews.get(position).onCreateView(parent); ViewHolder viewHolder = new ViewHolder(view); return viewHolder; } @Override ViewHolder onCreateView...
SnackbarAdapter extends RecyclerView.Adapter<SnackbarAdapter.ViewHolder> { @Override public ViewHolder onCreateViewHolder(ViewGroup parent, int position) { View view = mSnackbarViews.get(position).onCreateView(parent); ViewHolder viewHolder = new ViewHolder(view); return viewHolder; } @Override ViewHolder onCreateView...
@Test public void testOnBindViewHolder() throws Exception{ mAdapter.addItem(viewMock); PowerMockito.whenNew(SnackbarAdapter.ViewHolder.class).withAnyArguments().thenReturn(mViewHolder); mAdapter.onCreateViewHolder(null, 0); mAdapter.onBindViewHolder(mViewHolder,0); Mockito.verify(viewMock, Mockito.times(1)).onBindView(...
@Override public void onBindViewHolder(ViewHolder holder, int position) { SnackbarView snackbarView = mSnackbarViews.get(position); if (snackbarView != null) { snackbarView.onBindView(); } }
SnackbarAdapter extends RecyclerView.Adapter<SnackbarAdapter.ViewHolder> { @Override public void onBindViewHolder(ViewHolder holder, int position) { SnackbarView snackbarView = mSnackbarViews.get(position); if (snackbarView != null) { snackbarView.onBindView(); } } }
SnackbarAdapter extends RecyclerView.Adapter<SnackbarAdapter.ViewHolder> { @Override public void onBindViewHolder(ViewHolder holder, int position) { SnackbarView snackbarView = mSnackbarViews.get(position); if (snackbarView != null) { snackbarView.onBindView(); } } }
SnackbarAdapter extends RecyclerView.Adapter<SnackbarAdapter.ViewHolder> { @Override public void onBindViewHolder(ViewHolder holder, int position) { SnackbarView snackbarView = mSnackbarViews.get(position); if (snackbarView != null) { snackbarView.onBindView(); } } @Override ViewHolder onCreateViewHolder(ViewGroup par...
SnackbarAdapter extends RecyclerView.Adapter<SnackbarAdapter.ViewHolder> { @Override public void onBindViewHolder(ViewHolder holder, int position) { SnackbarView snackbarView = mSnackbarViews.get(position); if (snackbarView != null) { snackbarView.onBindView(); } } @Override ViewHolder onCreateViewHolder(ViewGroup par...
@Test public void testAddItem(){ mAdapter.addItem(viewMock); Assert.assertEquals(mAdapter.getItemCount(),1); }
public synchronized void addItem(SnackbarView item) { mSnackbarViews.add(item); int position = mSnackbarViews.indexOf(item); notifyItemInserted(position); }
SnackbarAdapter extends RecyclerView.Adapter<SnackbarAdapter.ViewHolder> { public synchronized void addItem(SnackbarView item) { mSnackbarViews.add(item); int position = mSnackbarViews.indexOf(item); notifyItemInserted(position); } }
SnackbarAdapter extends RecyclerView.Adapter<SnackbarAdapter.ViewHolder> { public synchronized void addItem(SnackbarView item) { mSnackbarViews.add(item); int position = mSnackbarViews.indexOf(item); notifyItemInserted(position); } }
SnackbarAdapter extends RecyclerView.Adapter<SnackbarAdapter.ViewHolder> { public synchronized void addItem(SnackbarView item) { mSnackbarViews.add(item); int position = mSnackbarViews.indexOf(item); notifyItemInserted(position); } @Override ViewHolder onCreateViewHolder(ViewGroup parent, int position); @Override void...
SnackbarAdapter extends RecyclerView.Adapter<SnackbarAdapter.ViewHolder> { public synchronized void addItem(SnackbarView item) { mSnackbarViews.add(item); int position = mSnackbarViews.indexOf(item); notifyItemInserted(position); } @Override ViewHolder onCreateViewHolder(ViewGroup parent, int position); @Override void...
@Test public void testRemoveItem(){ mAdapter.addItem(viewMock); Assert.assertEquals(mAdapter.getItemCount(),1); mAdapter.removeItem(viewMock); Assert.assertEquals(mAdapter.getItemCount(),0); }
public synchronized void removeItem(SnackbarView view) { int position = mSnackbarViews.indexOf(view); if (position > -1) { mSnackbarViews.remove(position); notifyItemRemoved(position); } }
SnackbarAdapter extends RecyclerView.Adapter<SnackbarAdapter.ViewHolder> { public synchronized void removeItem(SnackbarView view) { int position = mSnackbarViews.indexOf(view); if (position > -1) { mSnackbarViews.remove(position); notifyItemRemoved(position); } } }
SnackbarAdapter extends RecyclerView.Adapter<SnackbarAdapter.ViewHolder> { public synchronized void removeItem(SnackbarView view) { int position = mSnackbarViews.indexOf(view); if (position > -1) { mSnackbarViews.remove(position); notifyItemRemoved(position); } } }
SnackbarAdapter extends RecyclerView.Adapter<SnackbarAdapter.ViewHolder> { public synchronized void removeItem(SnackbarView view) { int position = mSnackbarViews.indexOf(view); if (position > -1) { mSnackbarViews.remove(position); notifyItemRemoved(position); } } @Override ViewHolder onCreateViewHolder(ViewGroup paren...
SnackbarAdapter extends RecyclerView.Adapter<SnackbarAdapter.ViewHolder> { public synchronized void removeItem(SnackbarView view) { int position = mSnackbarViews.indexOf(view); if (position > -1) { mSnackbarViews.remove(position); notifyItemRemoved(position); } } @Override ViewHolder onCreateViewHolder(ViewGroup paren...
@Test public void testEqualsNotEqualToNull() { Object rhs = null; NumberInterval instance = new NumberInterval(); assertFalse(instance.equals(rhs)); }
@Override public boolean equals(Object obj) { if (!(obj instanceof NumberInterval)) { return false; } NumberInterval rhs = (NumberInterval) obj; return Objects.equals(low, rhs.low) && Objects.equals(high, rhs.high); }
NumberInterval { @Override public boolean equals(Object obj) { if (!(obj instanceof NumberInterval)) { return false; } NumberInterval rhs = (NumberInterval) obj; return Objects.equals(low, rhs.low) && Objects.equals(high, rhs.high); } }
NumberInterval { @Override public boolean equals(Object obj) { if (!(obj instanceof NumberInterval)) { return false; } NumberInterval rhs = (NumberInterval) obj; return Objects.equals(low, rhs.low) && Objects.equals(high, rhs.high); } NumberInterval(); NumberInterval(NumberIntervalBoundary low, NumberIntervalBoundary ...
NumberInterval { @Override public boolean equals(Object obj) { if (!(obj instanceof NumberInterval)) { return false; } NumberInterval rhs = (NumberInterval) obj; return Objects.equals(low, rhs.low) && Objects.equals(high, rhs.high); } NumberInterval(); NumberInterval(NumberIntervalBoundary low, NumberIntervalBoundary ...
NumberInterval { @Override public boolean equals(Object obj) { if (!(obj instanceof NumberInterval)) { return false; } NumberInterval rhs = (NumberInterval) obj; return Objects.equals(low, rhs.low) && Objects.equals(high, rhs.high); } NumberInterval(); NumberInterval(NumberIntervalBoundary low, NumberIntervalBoundary ...
@Test public void testValidateLowAndHighEqual() throws Exception { NumberInterval instance = new NumberInterval( new NumberIntervalBoundary(10.0, true), new NumberIntervalBoundary(10.0, true) ); instance.validate(); }
public void validate() throws BadValueException { if (low == null) { throw new BadValueException("NumberInterval.low is required"); } if (high == null) { throw new BadValueException("NumberInterval.high is required"); } low.validate(); high.validate(); int compareLowHigh = low.compareBoundaryTo(high); if (compareLowHig...
NumberInterval { public void validate() throws BadValueException { if (low == null) { throw new BadValueException("NumberInterval.low is required"); } if (high == null) { throw new BadValueException("NumberInterval.high is required"); } low.validate(); high.validate(); int compareLowHigh = low.compareBoundaryTo(high); ...
NumberInterval { public void validate() throws BadValueException { if (low == null) { throw new BadValueException("NumberInterval.low is required"); } if (high == null) { throw new BadValueException("NumberInterval.high is required"); } low.validate(); high.validate(); int compareLowHigh = low.compareBoundaryTo(high); ...
NumberInterval { public void validate() throws BadValueException { if (low == null) { throw new BadValueException("NumberInterval.low is required"); } if (high == null) { throw new BadValueException("NumberInterval.high is required"); } low.validate(); high.validate(); int compareLowHigh = low.compareBoundaryTo(high); ...
NumberInterval { public void validate() throws BadValueException { if (low == null) { throw new BadValueException("NumberInterval.low is required"); } if (high == null) { throw new BadValueException("NumberInterval.high is required"); } low.validate(); high.validate(); int compareLowHigh = low.compareBoundaryTo(high); ...
@Test public void testValidateInfinity() throws Exception { NumberInterval instance = new NumberInterval( NumberIntervalBoundary.NEGATIVE_INFINITY, NumberIntervalBoundary.POSITIVE_INFINITY ); instance.validate(); }
public void validate() throws BadValueException { if (low == null) { throw new BadValueException("NumberInterval.low is required"); } if (high == null) { throw new BadValueException("NumberInterval.high is required"); } low.validate(); high.validate(); int compareLowHigh = low.compareBoundaryTo(high); if (compareLowHig...
NumberInterval { public void validate() throws BadValueException { if (low == null) { throw new BadValueException("NumberInterval.low is required"); } if (high == null) { throw new BadValueException("NumberInterval.high is required"); } low.validate(); high.validate(); int compareLowHigh = low.compareBoundaryTo(high); ...
NumberInterval { public void validate() throws BadValueException { if (low == null) { throw new BadValueException("NumberInterval.low is required"); } if (high == null) { throw new BadValueException("NumberInterval.high is required"); } low.validate(); high.validate(); int compareLowHigh = low.compareBoundaryTo(high); ...
NumberInterval { public void validate() throws BadValueException { if (low == null) { throw new BadValueException("NumberInterval.low is required"); } if (high == null) { throw new BadValueException("NumberInterval.high is required"); } low.validate(); high.validate(); int compareLowHigh = low.compareBoundaryTo(high); ...
NumberInterval { public void validate() throws BadValueException { if (low == null) { throw new BadValueException("NumberInterval.low is required"); } if (high == null) { throw new BadValueException("NumberInterval.high is required"); } low.validate(); high.validate(); int compareLowHigh = low.compareBoundaryTo(high); ...
@Test public void testValidateLowInfinity() throws Exception { NumberInterval instance = new NumberInterval( NumberIntervalBoundary.NEGATIVE_INFINITY, new NumberIntervalBoundary(10.0, true) ); instance.validate(); }
public void validate() throws BadValueException { if (low == null) { throw new BadValueException("NumberInterval.low is required"); } if (high == null) { throw new BadValueException("NumberInterval.high is required"); } low.validate(); high.validate(); int compareLowHigh = low.compareBoundaryTo(high); if (compareLowHig...
NumberInterval { public void validate() throws BadValueException { if (low == null) { throw new BadValueException("NumberInterval.low is required"); } if (high == null) { throw new BadValueException("NumberInterval.high is required"); } low.validate(); high.validate(); int compareLowHigh = low.compareBoundaryTo(high); ...
NumberInterval { public void validate() throws BadValueException { if (low == null) { throw new BadValueException("NumberInterval.low is required"); } if (high == null) { throw new BadValueException("NumberInterval.high is required"); } low.validate(); high.validate(); int compareLowHigh = low.compareBoundaryTo(high); ...
NumberInterval { public void validate() throws BadValueException { if (low == null) { throw new BadValueException("NumberInterval.low is required"); } if (high == null) { throw new BadValueException("NumberInterval.high is required"); } low.validate(); high.validate(); int compareLowHigh = low.compareBoundaryTo(high); ...
NumberInterval { public void validate() throws BadValueException { if (low == null) { throw new BadValueException("NumberInterval.low is required"); } if (high == null) { throw new BadValueException("NumberInterval.high is required"); } low.validate(); high.validate(); int compareLowHigh = low.compareBoundaryTo(high); ...
@Test public void testValidateHighInfinity() throws Exception { NumberInterval instance = new NumberInterval( new NumberIntervalBoundary(10.0, true), NumberIntervalBoundary.POSITIVE_INFINITY ); instance.validate(); }
public void validate() throws BadValueException { if (low == null) { throw new BadValueException("NumberInterval.low is required"); } if (high == null) { throw new BadValueException("NumberInterval.high is required"); } low.validate(); high.validate(); int compareLowHigh = low.compareBoundaryTo(high); if (compareLowHig...
NumberInterval { public void validate() throws BadValueException { if (low == null) { throw new BadValueException("NumberInterval.low is required"); } if (high == null) { throw new BadValueException("NumberInterval.high is required"); } low.validate(); high.validate(); int compareLowHigh = low.compareBoundaryTo(high); ...
NumberInterval { public void validate() throws BadValueException { if (low == null) { throw new BadValueException("NumberInterval.low is required"); } if (high == null) { throw new BadValueException("NumberInterval.high is required"); } low.validate(); high.validate(); int compareLowHigh = low.compareBoundaryTo(high); ...
NumberInterval { public void validate() throws BadValueException { if (low == null) { throw new BadValueException("NumberInterval.low is required"); } if (high == null) { throw new BadValueException("NumberInterval.high is required"); } low.validate(); high.validate(); int compareLowHigh = low.compareBoundaryTo(high); ...
NumberInterval { public void validate() throws BadValueException { if (low == null) { throw new BadValueException("NumberInterval.low is required"); } if (high == null) { throw new BadValueException("NumberInterval.high is required"); } low.validate(); high.validate(); int compareLowHigh = low.compareBoundaryTo(high); ...
@Test public void testValidate() throws Exception { NumberInterval instance = new NumberInterval( new NumberIntervalBoundary(-10.0), new NumberIntervalBoundary(10.0, false) ); instance.validate(); }
public void validate() throws BadValueException { if (low == null) { throw new BadValueException("NumberInterval.low is required"); } if (high == null) { throw new BadValueException("NumberInterval.high is required"); } low.validate(); high.validate(); int compareLowHigh = low.compareBoundaryTo(high); if (compareLowHig...
NumberInterval { public void validate() throws BadValueException { if (low == null) { throw new BadValueException("NumberInterval.low is required"); } if (high == null) { throw new BadValueException("NumberInterval.high is required"); } low.validate(); high.validate(); int compareLowHigh = low.compareBoundaryTo(high); ...
NumberInterval { public void validate() throws BadValueException { if (low == null) { throw new BadValueException("NumberInterval.low is required"); } if (high == null) { throw new BadValueException("NumberInterval.high is required"); } low.validate(); high.validate(); int compareLowHigh = low.compareBoundaryTo(high); ...
NumberInterval { public void validate() throws BadValueException { if (low == null) { throw new BadValueException("NumberInterval.low is required"); } if (high == null) { throw new BadValueException("NumberInterval.high is required"); } low.validate(); high.validate(); int compareLowHigh = low.compareBoundaryTo(high); ...
NumberInterval { public void validate() throws BadValueException { if (low == null) { throw new BadValueException("NumberInterval.low is required"); } if (high == null) { throw new BadValueException("NumberInterval.high is required"); } low.validate(); high.validate(); int compareLowHigh = low.compareBoundaryTo(high); ...
@Test public void testOverlaps() { NumberInterval lhs; NumberInterval rhs; lhs = new NumberInterval( new NumberIntervalBoundary(-10.0), new NumberIntervalBoundary(10.0) ); testOverlapCommon(lhs); rhs = new NumberInterval( NumberIntervalBoundary.NEGATIVE_INFINITY, new NumberIntervalBoundary(-10.0, true) ); assertDontOve...
public boolean overlaps(NumberInterval rhs) { return !doesNotOverlap(rhs); }
NumberInterval { public boolean overlaps(NumberInterval rhs) { return !doesNotOverlap(rhs); } }
NumberInterval { public boolean overlaps(NumberInterval rhs) { return !doesNotOverlap(rhs); } NumberInterval(); NumberInterval(NumberIntervalBoundary low, NumberIntervalBoundary high); }
NumberInterval { public boolean overlaps(NumberInterval rhs) { return !doesNotOverlap(rhs); } NumberInterval(); NumberInterval(NumberIntervalBoundary low, NumberIntervalBoundary high); @Override boolean equals(Object obj); @Override int hashCode(); @Override String toString(); void validate(); boolean overlaps(NumberI...
NumberInterval { public boolean overlaps(NumberInterval rhs) { return !doesNotOverlap(rhs); } NumberInterval(); NumberInterval(NumberIntervalBoundary low, NumberIntervalBoundary high); @Override boolean equals(Object obj); @Override int hashCode(); @Override String toString(); void validate(); boolean overlaps(NumberI...
@Test public void testValidateNoIntervals() throws Exception { NumberAttributeDomainDto instance = new NumberAttributeDomainDto(); instance.validate(); }
@Override public void validate() throws BadValueException { if (intervals == null) { return; } for (NumberInterval interval : intervals) { interval.validate(); } int size = intervals.size(); int count = 0; for (NumberInterval interval : intervals) { validateNoOverlap(interval, intervals.subList(++count, size)); } }
NumberAttributeDomainDto extends AttributeDomainDto { @Override public void validate() throws BadValueException { if (intervals == null) { return; } for (NumberInterval interval : intervals) { interval.validate(); } int size = intervals.size(); int count = 0; for (NumberInterval interval : intervals) { validateNoOverla...
NumberAttributeDomainDto extends AttributeDomainDto { @Override public void validate() throws BadValueException { if (intervals == null) { return; } for (NumberInterval interval : intervals) { interval.validate(); } int size = intervals.size(); int count = 0; for (NumberInterval interval : intervals) { validateNoOverla...
NumberAttributeDomainDto extends AttributeDomainDto { @Override public void validate() throws BadValueException { if (intervals == null) { return; } for (NumberInterval interval : intervals) { interval.validate(); } int size = intervals.size(); int count = 0; for (NumberInterval interval : intervals) { validateNoOverla...
NumberAttributeDomainDto extends AttributeDomainDto { @Override public void validate() throws BadValueException { if (intervals == null) { return; } for (NumberInterval interval : intervals) { interval.validate(); } int size = intervals.size(); int count = 0; for (NumberInterval interval : intervals) { validateNoOverla...
@Test public void testValidateEmptyIntervals() throws Exception { NumberAttributeDomainDto instance = new NumberAttributeDomainDto(Arrays.asList()); instance.validate(); }
@Override public void validate() throws BadValueException { if (intervals == null) { return; } for (NumberInterval interval : intervals) { interval.validate(); } int size = intervals.size(); int count = 0; for (NumberInterval interval : intervals) { validateNoOverlap(interval, intervals.subList(++count, size)); } }
NumberAttributeDomainDto extends AttributeDomainDto { @Override public void validate() throws BadValueException { if (intervals == null) { return; } for (NumberInterval interval : intervals) { interval.validate(); } int size = intervals.size(); int count = 0; for (NumberInterval interval : intervals) { validateNoOverla...
NumberAttributeDomainDto extends AttributeDomainDto { @Override public void validate() throws BadValueException { if (intervals == null) { return; } for (NumberInterval interval : intervals) { interval.validate(); } int size = intervals.size(); int count = 0; for (NumberInterval interval : intervals) { validateNoOverla...
NumberAttributeDomainDto extends AttributeDomainDto { @Override public void validate() throws BadValueException { if (intervals == null) { return; } for (NumberInterval interval : intervals) { interval.validate(); } int size = intervals.size(); int count = 0; for (NumberInterval interval : intervals) { validateNoOverla...
NumberAttributeDomainDto extends AttributeDomainDto { @Override public void validate() throws BadValueException { if (intervals == null) { return; } for (NumberInterval interval : intervals) { interval.validate(); } int size = intervals.size(); int count = 0; for (NumberInterval interval : intervals) { validateNoOverla...
@Test(expected = BadValueException.class) public void testValidateBadInterval() throws Exception { NumberAttributeDomainDto instance = new NumberAttributeDomainDto(Arrays.asList( new NumberInterval() )); instance.validate(); }
@Override public void validate() throws BadValueException { if (intervals == null) { return; } for (NumberInterval interval : intervals) { interval.validate(); } int size = intervals.size(); int count = 0; for (NumberInterval interval : intervals) { validateNoOverlap(interval, intervals.subList(++count, size)); } }
NumberAttributeDomainDto extends AttributeDomainDto { @Override public void validate() throws BadValueException { if (intervals == null) { return; } for (NumberInterval interval : intervals) { interval.validate(); } int size = intervals.size(); int count = 0; for (NumberInterval interval : intervals) { validateNoOverla...
NumberAttributeDomainDto extends AttributeDomainDto { @Override public void validate() throws BadValueException { if (intervals == null) { return; } for (NumberInterval interval : intervals) { interval.validate(); } int size = intervals.size(); int count = 0; for (NumberInterval interval : intervals) { validateNoOverla...
NumberAttributeDomainDto extends AttributeDomainDto { @Override public void validate() throws BadValueException { if (intervals == null) { return; } for (NumberInterval interval : intervals) { interval.validate(); } int size = intervals.size(); int count = 0; for (NumberInterval interval : intervals) { validateNoOverla...
NumberAttributeDomainDto extends AttributeDomainDto { @Override public void validate() throws BadValueException { if (intervals == null) { return; } for (NumberInterval interval : intervals) { interval.validate(); } int size = intervals.size(); int count = 0; for (NumberInterval interval : intervals) { validateNoOverla...
@Test public void testValidateSingle() throws Exception { NumberAttributeDomainDto instance = new NumberAttributeDomainDto(Arrays.asList( new NumberInterval( NumberIntervalBoundary.NEGATIVE_INFINITY, NumberIntervalBoundary.POSITIVE_INFINITY ) )); instance.validate(); }
@Override public void validate() throws BadValueException { if (intervals == null) { return; } for (NumberInterval interval : intervals) { interval.validate(); } int size = intervals.size(); int count = 0; for (NumberInterval interval : intervals) { validateNoOverlap(interval, intervals.subList(++count, size)); } }
NumberAttributeDomainDto extends AttributeDomainDto { @Override public void validate() throws BadValueException { if (intervals == null) { return; } for (NumberInterval interval : intervals) { interval.validate(); } int size = intervals.size(); int count = 0; for (NumberInterval interval : intervals) { validateNoOverla...
NumberAttributeDomainDto extends AttributeDomainDto { @Override public void validate() throws BadValueException { if (intervals == null) { return; } for (NumberInterval interval : intervals) { interval.validate(); } int size = intervals.size(); int count = 0; for (NumberInterval interval : intervals) { validateNoOverla...
NumberAttributeDomainDto extends AttributeDomainDto { @Override public void validate() throws BadValueException { if (intervals == null) { return; } for (NumberInterval interval : intervals) { interval.validate(); } int size = intervals.size(); int count = 0; for (NumberInterval interval : intervals) { validateNoOverla...
NumberAttributeDomainDto extends AttributeDomainDto { @Override public void validate() throws BadValueException { if (intervals == null) { return; } for (NumberInterval interval : intervals) { interval.validate(); } int size = intervals.size(); int count = 0; for (NumberInterval interval : intervals) { validateNoOverla...
@Test public void testEqualsNotEqualToOtherClasses() { Object rhs = new Object(); NumberInterval instance = new NumberInterval(); assertFalse(instance.equals(rhs)); }
@Override public boolean equals(Object obj) { if (!(obj instanceof NumberInterval)) { return false; } NumberInterval rhs = (NumberInterval) obj; return Objects.equals(low, rhs.low) && Objects.equals(high, rhs.high); }
NumberInterval { @Override public boolean equals(Object obj) { if (!(obj instanceof NumberInterval)) { return false; } NumberInterval rhs = (NumberInterval) obj; return Objects.equals(low, rhs.low) && Objects.equals(high, rhs.high); } }
NumberInterval { @Override public boolean equals(Object obj) { if (!(obj instanceof NumberInterval)) { return false; } NumberInterval rhs = (NumberInterval) obj; return Objects.equals(low, rhs.low) && Objects.equals(high, rhs.high); } NumberInterval(); NumberInterval(NumberIntervalBoundary low, NumberIntervalBoundary ...
NumberInterval { @Override public boolean equals(Object obj) { if (!(obj instanceof NumberInterval)) { return false; } NumberInterval rhs = (NumberInterval) obj; return Objects.equals(low, rhs.low) && Objects.equals(high, rhs.high); } NumberInterval(); NumberInterval(NumberIntervalBoundary low, NumberIntervalBoundary ...
NumberInterval { @Override public boolean equals(Object obj) { if (!(obj instanceof NumberInterval)) { return false; } NumberInterval rhs = (NumberInterval) obj; return Objects.equals(low, rhs.low) && Objects.equals(high, rhs.high); } NumberInterval(); NumberInterval(NumberIntervalBoundary low, NumberIntervalBoundary ...
@Test(expected = BadValueException.class) public void testValidateOverlap() throws Exception { NumberAttributeDomainDto instance = new NumberAttributeDomainDto(Arrays.asList( new NumberInterval( NumberIntervalBoundary.NEGATIVE_INFINITY, NumberIntervalBoundary.POSITIVE_INFINITY ), new NumberInterval( new NumberIntervalB...
@Override public void validate() throws BadValueException { if (intervals == null) { return; } for (NumberInterval interval : intervals) { interval.validate(); } int size = intervals.size(); int count = 0; for (NumberInterval interval : intervals) { validateNoOverlap(interval, intervals.subList(++count, size)); } }
NumberAttributeDomainDto extends AttributeDomainDto { @Override public void validate() throws BadValueException { if (intervals == null) { return; } for (NumberInterval interval : intervals) { interval.validate(); } int size = intervals.size(); int count = 0; for (NumberInterval interval : intervals) { validateNoOverla...
NumberAttributeDomainDto extends AttributeDomainDto { @Override public void validate() throws BadValueException { if (intervals == null) { return; } for (NumberInterval interval : intervals) { interval.validate(); } int size = intervals.size(); int count = 0; for (NumberInterval interval : intervals) { validateNoOverla...
NumberAttributeDomainDto extends AttributeDomainDto { @Override public void validate() throws BadValueException { if (intervals == null) { return; } for (NumberInterval interval : intervals) { interval.validate(); } int size = intervals.size(); int count = 0; for (NumberInterval interval : intervals) { validateNoOverla...
NumberAttributeDomainDto extends AttributeDomainDto { @Override public void validate() throws BadValueException { if (intervals == null) { return; } for (NumberInterval interval : intervals) { interval.validate(); } int size = intervals.size(); int count = 0; for (NumberInterval interval : intervals) { validateNoOverla...
@Test(expected = BadValueException.class) public void testValidateOverlapSwapped() throws Exception { NumberAttributeDomainDto instance = new NumberAttributeDomainDto(Arrays.asList( new NumberInterval( new NumberIntervalBoundary(10.0, true), new NumberIntervalBoundary(10.0, true) ), new NumberInterval( NumberIntervalBo...
@Override public void validate() throws BadValueException { if (intervals == null) { return; } for (NumberInterval interval : intervals) { interval.validate(); } int size = intervals.size(); int count = 0; for (NumberInterval interval : intervals) { validateNoOverlap(interval, intervals.subList(++count, size)); } }
NumberAttributeDomainDto extends AttributeDomainDto { @Override public void validate() throws BadValueException { if (intervals == null) { return; } for (NumberInterval interval : intervals) { interval.validate(); } int size = intervals.size(); int count = 0; for (NumberInterval interval : intervals) { validateNoOverla...
NumberAttributeDomainDto extends AttributeDomainDto { @Override public void validate() throws BadValueException { if (intervals == null) { return; } for (NumberInterval interval : intervals) { interval.validate(); } int size = intervals.size(); int count = 0; for (NumberInterval interval : intervals) { validateNoOverla...
NumberAttributeDomainDto extends AttributeDomainDto { @Override public void validate() throws BadValueException { if (intervals == null) { return; } for (NumberInterval interval : intervals) { interval.validate(); } int size = intervals.size(); int count = 0; for (NumberInterval interval : intervals) { validateNoOverla...
NumberAttributeDomainDto extends AttributeDomainDto { @Override public void validate() throws BadValueException { if (intervals == null) { return; } for (NumberInterval interval : intervals) { interval.validate(); } int size = intervals.size(); int count = 0; for (NumberInterval interval : intervals) { validateNoOverla...
@Test public void testValidateTwo() throws Exception { NumberAttributeDomainDto instance = new NumberAttributeDomainDto(Arrays.asList( new NumberInterval( new NumberIntervalBoundary(10.0, true), new NumberIntervalBoundary(10.0, true) ), new NumberInterval( new NumberIntervalBoundary(10.0, false), new NumberIntervalBoun...
@Override public void validate() throws BadValueException { if (intervals == null) { return; } for (NumberInterval interval : intervals) { interval.validate(); } int size = intervals.size(); int count = 0; for (NumberInterval interval : intervals) { validateNoOverlap(interval, intervals.subList(++count, size)); } }
NumberAttributeDomainDto extends AttributeDomainDto { @Override public void validate() throws BadValueException { if (intervals == null) { return; } for (NumberInterval interval : intervals) { interval.validate(); } int size = intervals.size(); int count = 0; for (NumberInterval interval : intervals) { validateNoOverla...
NumberAttributeDomainDto extends AttributeDomainDto { @Override public void validate() throws BadValueException { if (intervals == null) { return; } for (NumberInterval interval : intervals) { interval.validate(); } int size = intervals.size(); int count = 0; for (NumberInterval interval : intervals) { validateNoOverla...
NumberAttributeDomainDto extends AttributeDomainDto { @Override public void validate() throws BadValueException { if (intervals == null) { return; } for (NumberInterval interval : intervals) { interval.validate(); } int size = intervals.size(); int count = 0; for (NumberInterval interval : intervals) { validateNoOverla...
NumberAttributeDomainDto extends AttributeDomainDto { @Override public void validate() throws BadValueException { if (intervals == null) { return; } for (NumberInterval interval : intervals) { interval.validate(); } int size = intervals.size(); int count = 0; for (NumberInterval interval : intervals) { validateNoOverla...
@Test public void testValidateTwoSwapped() throws Exception { NumberAttributeDomainDto instance = new NumberAttributeDomainDto(Arrays.asList( new NumberInterval( new NumberIntervalBoundary(10.0, false), new NumberIntervalBoundary(20.0, true) ), new NumberInterval( new NumberIntervalBoundary(10.0, true), new NumberInter...
@Override public void validate() throws BadValueException { if (intervals == null) { return; } for (NumberInterval interval : intervals) { interval.validate(); } int size = intervals.size(); int count = 0; for (NumberInterval interval : intervals) { validateNoOverlap(interval, intervals.subList(++count, size)); } }
NumberAttributeDomainDto extends AttributeDomainDto { @Override public void validate() throws BadValueException { if (intervals == null) { return; } for (NumberInterval interval : intervals) { interval.validate(); } int size = intervals.size(); int count = 0; for (NumberInterval interval : intervals) { validateNoOverla...
NumberAttributeDomainDto extends AttributeDomainDto { @Override public void validate() throws BadValueException { if (intervals == null) { return; } for (NumberInterval interval : intervals) { interval.validate(); } int size = intervals.size(); int count = 0; for (NumberInterval interval : intervals) { validateNoOverla...
NumberAttributeDomainDto extends AttributeDomainDto { @Override public void validate() throws BadValueException { if (intervals == null) { return; } for (NumberInterval interval : intervals) { interval.validate(); } int size = intervals.size(); int count = 0; for (NumberInterval interval : intervals) { validateNoOverla...
NumberAttributeDomainDto extends AttributeDomainDto { @Override public void validate() throws BadValueException { if (intervals == null) { return; } for (NumberInterval interval : intervals) { interval.validate(); } int size = intervals.size(); int count = 0; for (NumberInterval interval : intervals) { validateNoOverla...
@Test public void testValidateNoRegex() throws BadValueException { StringAttributeDomainDto instance = new StringAttributeDomainDto(); instance.validate(); }
@Override public void validate() throws BadValueException { if (regex == null) { return; } try { Pattern.compile(regex); } catch (PatternSyntaxException ex) { throw new BadValueException("Invalid regex: " + ex.getMessage(), ex); } }
StringAttributeDomainDto extends AttributeDomainDto { @Override public void validate() throws BadValueException { if (regex == null) { return; } try { Pattern.compile(regex); } catch (PatternSyntaxException ex) { throw new BadValueException("Invalid regex: " + ex.getMessage(), ex); } } }
StringAttributeDomainDto extends AttributeDomainDto { @Override public void validate() throws BadValueException { if (regex == null) { return; } try { Pattern.compile(regex); } catch (PatternSyntaxException ex) { throw new BadValueException("Invalid regex: " + ex.getMessage(), ex); } } StringAttributeDomainDto(); Stri...
StringAttributeDomainDto extends AttributeDomainDto { @Override public void validate() throws BadValueException { if (regex == null) { return; } try { Pattern.compile(regex); } catch (PatternSyntaxException ex) { throw new BadValueException("Invalid regex: " + ex.getMessage(), ex); } } StringAttributeDomainDto(); Stri...
StringAttributeDomainDto extends AttributeDomainDto { @Override public void validate() throws BadValueException { if (regex == null) { return; } try { Pattern.compile(regex); } catch (PatternSyntaxException ex) { throw new BadValueException("Invalid regex: " + ex.getMessage(), ex); } } StringAttributeDomainDto(); Stri...
@Test public void testValidateEmptyRegex() throws BadValueException { StringAttributeDomainDto instance = new StringAttributeDomainDto(""); instance.validate(); }
@Override public void validate() throws BadValueException { if (regex == null) { return; } try { Pattern.compile(regex); } catch (PatternSyntaxException ex) { throw new BadValueException("Invalid regex: " + ex.getMessage(), ex); } }
StringAttributeDomainDto extends AttributeDomainDto { @Override public void validate() throws BadValueException { if (regex == null) { return; } try { Pattern.compile(regex); } catch (PatternSyntaxException ex) { throw new BadValueException("Invalid regex: " + ex.getMessage(), ex); } } }
StringAttributeDomainDto extends AttributeDomainDto { @Override public void validate() throws BadValueException { if (regex == null) { return; } try { Pattern.compile(regex); } catch (PatternSyntaxException ex) { throw new BadValueException("Invalid regex: " + ex.getMessage(), ex); } } StringAttributeDomainDto(); Stri...
StringAttributeDomainDto extends AttributeDomainDto { @Override public void validate() throws BadValueException { if (regex == null) { return; } try { Pattern.compile(regex); } catch (PatternSyntaxException ex) { throw new BadValueException("Invalid regex: " + ex.getMessage(), ex); } } StringAttributeDomainDto(); Stri...
StringAttributeDomainDto extends AttributeDomainDto { @Override public void validate() throws BadValueException { if (regex == null) { return; } try { Pattern.compile(regex); } catch (PatternSyntaxException ex) { throw new BadValueException("Invalid regex: " + ex.getMessage(), ex); } } StringAttributeDomainDto(); Stri...
@Test(expected = PatternSyntaxException.class) public void testValidateBadRegex() throws BadValueException, Throwable { StringAttributeDomainDto instance = new StringAttributeDomainDto("["); try { instance.validate(); } catch (BadValueException ex) { if (ex.getCause() instanceof PatternSyntaxException) { throw ex.getCa...
@Override public void validate() throws BadValueException { if (regex == null) { return; } try { Pattern.compile(regex); } catch (PatternSyntaxException ex) { throw new BadValueException("Invalid regex: " + ex.getMessage(), ex); } }
StringAttributeDomainDto extends AttributeDomainDto { @Override public void validate() throws BadValueException { if (regex == null) { return; } try { Pattern.compile(regex); } catch (PatternSyntaxException ex) { throw new BadValueException("Invalid regex: " + ex.getMessage(), ex); } } }
StringAttributeDomainDto extends AttributeDomainDto { @Override public void validate() throws BadValueException { if (regex == null) { return; } try { Pattern.compile(regex); } catch (PatternSyntaxException ex) { throw new BadValueException("Invalid regex: " + ex.getMessage(), ex); } } StringAttributeDomainDto(); Stri...
StringAttributeDomainDto extends AttributeDomainDto { @Override public void validate() throws BadValueException { if (regex == null) { return; } try { Pattern.compile(regex); } catch (PatternSyntaxException ex) { throw new BadValueException("Invalid regex: " + ex.getMessage(), ex); } } StringAttributeDomainDto(); Stri...
StringAttributeDomainDto extends AttributeDomainDto { @Override public void validate() throws BadValueException { if (regex == null) { return; } try { Pattern.compile(regex); } catch (PatternSyntaxException ex) { throw new BadValueException("Invalid regex: " + ex.getMessage(), ex); } } StringAttributeDomainDto(); Stri...
@Test public void testValidateRegex() throws BadValueException { StringAttributeDomainDto instance = new StringAttributeDomainDto("prefix-[0-9]+"); instance.validate(); }
@Override public void validate() throws BadValueException { if (regex == null) { return; } try { Pattern.compile(regex); } catch (PatternSyntaxException ex) { throw new BadValueException("Invalid regex: " + ex.getMessage(), ex); } }
StringAttributeDomainDto extends AttributeDomainDto { @Override public void validate() throws BadValueException { if (regex == null) { return; } try { Pattern.compile(regex); } catch (PatternSyntaxException ex) { throw new BadValueException("Invalid regex: " + ex.getMessage(), ex); } } }
StringAttributeDomainDto extends AttributeDomainDto { @Override public void validate() throws BadValueException { if (regex == null) { return; } try { Pattern.compile(regex); } catch (PatternSyntaxException ex) { throw new BadValueException("Invalid regex: " + ex.getMessage(), ex); } } StringAttributeDomainDto(); Stri...
StringAttributeDomainDto extends AttributeDomainDto { @Override public void validate() throws BadValueException { if (regex == null) { return; } try { Pattern.compile(regex); } catch (PatternSyntaxException ex) { throw new BadValueException("Invalid regex: " + ex.getMessage(), ex); } } StringAttributeDomainDto(); Stri...
StringAttributeDomainDto extends AttributeDomainDto { @Override public void validate() throws BadValueException { if (regex == null) { return; } try { Pattern.compile(regex); } catch (PatternSyntaxException ex) { throw new BadValueException("Invalid regex: " + ex.getMessage(), ex); } } StringAttributeDomainDto(); Stri...
@Test public void testNotEqualToNull() { Object rhs = null; NumberIntervalBoundary instance = new NumberIntervalBoundary(); assertFalse(instance.equals(rhs)); }
@Override public boolean equals(Object obj) { if (!(obj instanceof NumberIntervalBoundary)) { return false; } NumberIntervalBoundary rhs = (NumberIntervalBoundary) obj; return Objects.equals(boundary, rhs.boundary) && (isInclusive() == rhs.isInclusive()); }
NumberIntervalBoundary { @Override public boolean equals(Object obj) { if (!(obj instanceof NumberIntervalBoundary)) { return false; } NumberIntervalBoundary rhs = (NumberIntervalBoundary) obj; return Objects.equals(boundary, rhs.boundary) && (isInclusive() == rhs.isInclusive()); } }
NumberIntervalBoundary { @Override public boolean equals(Object obj) { if (!(obj instanceof NumberIntervalBoundary)) { return false; } NumberIntervalBoundary rhs = (NumberIntervalBoundary) obj; return Objects.equals(boundary, rhs.boundary) && (isInclusive() == rhs.isInclusive()); } NumberIntervalBoundary(); NumberInte...
NumberIntervalBoundary { @Override public boolean equals(Object obj) { if (!(obj instanceof NumberIntervalBoundary)) { return false; } NumberIntervalBoundary rhs = (NumberIntervalBoundary) obj; return Objects.equals(boundary, rhs.boundary) && (isInclusive() == rhs.isInclusive()); } NumberIntervalBoundary(); NumberInte...
NumberIntervalBoundary { @Override public boolean equals(Object obj) { if (!(obj instanceof NumberIntervalBoundary)) { return false; } NumberIntervalBoundary rhs = (NumberIntervalBoundary) obj; return Objects.equals(boundary, rhs.boundary) && (isInclusive() == rhs.isInclusive()); } NumberIntervalBoundary(); NumberInte...
@Test public void testNotEqualToOtherClasses() { Object rhs = new Object(); NumberIntervalBoundary instance = new NumberIntervalBoundary(); assertFalse(instance.equals(rhs)); }
@Override public boolean equals(Object obj) { if (!(obj instanceof NumberIntervalBoundary)) { return false; } NumberIntervalBoundary rhs = (NumberIntervalBoundary) obj; return Objects.equals(boundary, rhs.boundary) && (isInclusive() == rhs.isInclusive()); }
NumberIntervalBoundary { @Override public boolean equals(Object obj) { if (!(obj instanceof NumberIntervalBoundary)) { return false; } NumberIntervalBoundary rhs = (NumberIntervalBoundary) obj; return Objects.equals(boundary, rhs.boundary) && (isInclusive() == rhs.isInclusive()); } }
NumberIntervalBoundary { @Override public boolean equals(Object obj) { if (!(obj instanceof NumberIntervalBoundary)) { return false; } NumberIntervalBoundary rhs = (NumberIntervalBoundary) obj; return Objects.equals(boundary, rhs.boundary) && (isInclusive() == rhs.isInclusive()); } NumberIntervalBoundary(); NumberInte...
NumberIntervalBoundary { @Override public boolean equals(Object obj) { if (!(obj instanceof NumberIntervalBoundary)) { return false; } NumberIntervalBoundary rhs = (NumberIntervalBoundary) obj; return Objects.equals(boundary, rhs.boundary) && (isInclusive() == rhs.isInclusive()); } NumberIntervalBoundary(); NumberInte...
NumberIntervalBoundary { @Override public boolean equals(Object obj) { if (!(obj instanceof NumberIntervalBoundary)) { return false; } NumberIntervalBoundary rhs = (NumberIntervalBoundary) obj; return Objects.equals(boundary, rhs.boundary) && (isInclusive() == rhs.isInclusive()); } NumberIntervalBoundary(); NumberInte...
@Test public void testEquals() { NumberInterval rhs = new NumberInterval(); rhs.setLow(new NumberIntervalBoundary(0.0)); rhs.setHigh(new NumberIntervalBoundary(10.0)); NumberInterval instance = new NumberInterval(); instance.setLow(new NumberIntervalBoundary(0.0)); instance.setHigh(new NumberIntervalBoundary(10.0)); as...
@Override public boolean equals(Object obj) { if (!(obj instanceof NumberInterval)) { return false; } NumberInterval rhs = (NumberInterval) obj; return Objects.equals(low, rhs.low) && Objects.equals(high, rhs.high); }
NumberInterval { @Override public boolean equals(Object obj) { if (!(obj instanceof NumberInterval)) { return false; } NumberInterval rhs = (NumberInterval) obj; return Objects.equals(low, rhs.low) && Objects.equals(high, rhs.high); } }
NumberInterval { @Override public boolean equals(Object obj) { if (!(obj instanceof NumberInterval)) { return false; } NumberInterval rhs = (NumberInterval) obj; return Objects.equals(low, rhs.low) && Objects.equals(high, rhs.high); } NumberInterval(); NumberInterval(NumberIntervalBoundary low, NumberIntervalBoundary ...
NumberInterval { @Override public boolean equals(Object obj) { if (!(obj instanceof NumberInterval)) { return false; } NumberInterval rhs = (NumberInterval) obj; return Objects.equals(low, rhs.low) && Objects.equals(high, rhs.high); } NumberInterval(); NumberInterval(NumberIntervalBoundary low, NumberIntervalBoundary ...
NumberInterval { @Override public boolean equals(Object obj) { if (!(obj instanceof NumberInterval)) { return false; } NumberInterval rhs = (NumberInterval) obj; return Objects.equals(low, rhs.low) && Objects.equals(high, rhs.high); } NumberInterval(); NumberInterval(NumberIntervalBoundary low, NumberIntervalBoundary ...
@Test public void testNotEqualToDifferentBoundarySameInclusion() { NumberIntervalBoundary rhs = new NumberIntervalBoundary(10.0); NumberIntervalBoundary instance = new NumberIntervalBoundary(11.0); assertFalse(instance.equals(rhs)); }
@Override public boolean equals(Object obj) { if (!(obj instanceof NumberIntervalBoundary)) { return false; } NumberIntervalBoundary rhs = (NumberIntervalBoundary) obj; return Objects.equals(boundary, rhs.boundary) && (isInclusive() == rhs.isInclusive()); }
NumberIntervalBoundary { @Override public boolean equals(Object obj) { if (!(obj instanceof NumberIntervalBoundary)) { return false; } NumberIntervalBoundary rhs = (NumberIntervalBoundary) obj; return Objects.equals(boundary, rhs.boundary) && (isInclusive() == rhs.isInclusive()); } }
NumberIntervalBoundary { @Override public boolean equals(Object obj) { if (!(obj instanceof NumberIntervalBoundary)) { return false; } NumberIntervalBoundary rhs = (NumberIntervalBoundary) obj; return Objects.equals(boundary, rhs.boundary) && (isInclusive() == rhs.isInclusive()); } NumberIntervalBoundary(); NumberInte...
NumberIntervalBoundary { @Override public boolean equals(Object obj) { if (!(obj instanceof NumberIntervalBoundary)) { return false; } NumberIntervalBoundary rhs = (NumberIntervalBoundary) obj; return Objects.equals(boundary, rhs.boundary) && (isInclusive() == rhs.isInclusive()); } NumberIntervalBoundary(); NumberInte...
NumberIntervalBoundary { @Override public boolean equals(Object obj) { if (!(obj instanceof NumberIntervalBoundary)) { return false; } NumberIntervalBoundary rhs = (NumberIntervalBoundary) obj; return Objects.equals(boundary, rhs.boundary) && (isInclusive() == rhs.isInclusive()); } NumberIntervalBoundary(); NumberInte...
@Test public void testNotEqualToSameBoundaryDifferentInclusion() { NumberIntervalBoundary rhs = new NumberIntervalBoundary(10.0, true); NumberIntervalBoundary instance = new NumberIntervalBoundary(10.0, false); assertFalse(instance.equals(rhs)); }
@Override public boolean equals(Object obj) { if (!(obj instanceof NumberIntervalBoundary)) { return false; } NumberIntervalBoundary rhs = (NumberIntervalBoundary) obj; return Objects.equals(boundary, rhs.boundary) && (isInclusive() == rhs.isInclusive()); }
NumberIntervalBoundary { @Override public boolean equals(Object obj) { if (!(obj instanceof NumberIntervalBoundary)) { return false; } NumberIntervalBoundary rhs = (NumberIntervalBoundary) obj; return Objects.equals(boundary, rhs.boundary) && (isInclusive() == rhs.isInclusive()); } }
NumberIntervalBoundary { @Override public boolean equals(Object obj) { if (!(obj instanceof NumberIntervalBoundary)) { return false; } NumberIntervalBoundary rhs = (NumberIntervalBoundary) obj; return Objects.equals(boundary, rhs.boundary) && (isInclusive() == rhs.isInclusive()); } NumberIntervalBoundary(); NumberInte...
NumberIntervalBoundary { @Override public boolean equals(Object obj) { if (!(obj instanceof NumberIntervalBoundary)) { return false; } NumberIntervalBoundary rhs = (NumberIntervalBoundary) obj; return Objects.equals(boundary, rhs.boundary) && (isInclusive() == rhs.isInclusive()); } NumberIntervalBoundary(); NumberInte...
NumberIntervalBoundary { @Override public boolean equals(Object obj) { if (!(obj instanceof NumberIntervalBoundary)) { return false; } NumberIntervalBoundary rhs = (NumberIntervalBoundary) obj; return Objects.equals(boundary, rhs.boundary) && (isInclusive() == rhs.isInclusive()); } NumberIntervalBoundary(); NumberInte...
@Test public void testNotEqualToDifferentBoundaryDifferentInclusion() { NumberIntervalBoundary rhs = new NumberIntervalBoundary(10.0, true); NumberIntervalBoundary instance = new NumberIntervalBoundary(12.0, null); assertFalse(instance.equals(rhs)); }
@Override public boolean equals(Object obj) { if (!(obj instanceof NumberIntervalBoundary)) { return false; } NumberIntervalBoundary rhs = (NumberIntervalBoundary) obj; return Objects.equals(boundary, rhs.boundary) && (isInclusive() == rhs.isInclusive()); }
NumberIntervalBoundary { @Override public boolean equals(Object obj) { if (!(obj instanceof NumberIntervalBoundary)) { return false; } NumberIntervalBoundary rhs = (NumberIntervalBoundary) obj; return Objects.equals(boundary, rhs.boundary) && (isInclusive() == rhs.isInclusive()); } }
NumberIntervalBoundary { @Override public boolean equals(Object obj) { if (!(obj instanceof NumberIntervalBoundary)) { return false; } NumberIntervalBoundary rhs = (NumberIntervalBoundary) obj; return Objects.equals(boundary, rhs.boundary) && (isInclusive() == rhs.isInclusive()); } NumberIntervalBoundary(); NumberInte...
NumberIntervalBoundary { @Override public boolean equals(Object obj) { if (!(obj instanceof NumberIntervalBoundary)) { return false; } NumberIntervalBoundary rhs = (NumberIntervalBoundary) obj; return Objects.equals(boundary, rhs.boundary) && (isInclusive() == rhs.isInclusive()); } NumberIntervalBoundary(); NumberInte...
NumberIntervalBoundary { @Override public boolean equals(Object obj) { if (!(obj instanceof NumberIntervalBoundary)) { return false; } NumberIntervalBoundary rhs = (NumberIntervalBoundary) obj; return Objects.equals(boundary, rhs.boundary) && (isInclusive() == rhs.isInclusive()); } NumberIntervalBoundary(); NumberInte...
@Test public void testEquals() { NumberIntervalBoundary rhs = new NumberIntervalBoundary(10.0, true); NumberIntervalBoundary instance = new NumberIntervalBoundary(10.0, true); assertTrue(instance.equals(rhs)); }
@Override public boolean equals(Object obj) { if (!(obj instanceof NumberIntervalBoundary)) { return false; } NumberIntervalBoundary rhs = (NumberIntervalBoundary) obj; return Objects.equals(boundary, rhs.boundary) && (isInclusive() == rhs.isInclusive()); }
NumberIntervalBoundary { @Override public boolean equals(Object obj) { if (!(obj instanceof NumberIntervalBoundary)) { return false; } NumberIntervalBoundary rhs = (NumberIntervalBoundary) obj; return Objects.equals(boundary, rhs.boundary) && (isInclusive() == rhs.isInclusive()); } }
NumberIntervalBoundary { @Override public boolean equals(Object obj) { if (!(obj instanceof NumberIntervalBoundary)) { return false; } NumberIntervalBoundary rhs = (NumberIntervalBoundary) obj; return Objects.equals(boundary, rhs.boundary) && (isInclusive() == rhs.isInclusive()); } NumberIntervalBoundary(); NumberInte...
NumberIntervalBoundary { @Override public boolean equals(Object obj) { if (!(obj instanceof NumberIntervalBoundary)) { return false; } NumberIntervalBoundary rhs = (NumberIntervalBoundary) obj; return Objects.equals(boundary, rhs.boundary) && (isInclusive() == rhs.isInclusive()); } NumberIntervalBoundary(); NumberInte...
NumberIntervalBoundary { @Override public boolean equals(Object obj) { if (!(obj instanceof NumberIntervalBoundary)) { return false; } NumberIntervalBoundary rhs = (NumberIntervalBoundary) obj; return Objects.equals(boundary, rhs.boundary) && (isInclusive() == rhs.isInclusive()); } NumberIntervalBoundary(); NumberInte...
@Test public void testHashCodeForEqualInstances() { int lhs = new NumberIntervalBoundary(1.1, Boolean.FALSE).hashCode(); int rhs = new NumberIntervalBoundary(1.1, Boolean.FALSE).hashCode(); assertEquals(lhs, rhs); }
@Override public int hashCode() { return Objects.hash(this.boundary, isInclusive() ? Boolean.TRUE : Boolean.FALSE); }
NumberIntervalBoundary { @Override public int hashCode() { return Objects.hash(this.boundary, isInclusive() ? Boolean.TRUE : Boolean.FALSE); } }
NumberIntervalBoundary { @Override public int hashCode() { return Objects.hash(this.boundary, isInclusive() ? Boolean.TRUE : Boolean.FALSE); } NumberIntervalBoundary(); NumberIntervalBoundary(Double boundary); NumberIntervalBoundary(Double boundary, Boolean inclusive); }
NumberIntervalBoundary { @Override public int hashCode() { return Objects.hash(this.boundary, isInclusive() ? Boolean.TRUE : Boolean.FALSE); } NumberIntervalBoundary(); NumberIntervalBoundary(Double boundary); NumberIntervalBoundary(Double boundary, Boolean inclusive); @Override boolean equals(Object obj); @Override ...
NumberIntervalBoundary { @Override public int hashCode() { return Objects.hash(this.boundary, isInclusive() ? Boolean.TRUE : Boolean.FALSE); } NumberIntervalBoundary(); NumberIntervalBoundary(Double boundary); NumberIntervalBoundary(Double boundary, Boolean inclusive); @Override boolean equals(Object obj); @Override ...
@Test public void testNotIsInclusiveByDefault() { NumberIntervalBoundary instance = new NumberIntervalBoundary(); assertFalse(instance.isInclusive()); }
@JsonIgnore public boolean isInclusive() { return inclusive != null && inclusive; }
NumberIntervalBoundary { @JsonIgnore public boolean isInclusive() { return inclusive != null && inclusive; } }
NumberIntervalBoundary { @JsonIgnore public boolean isInclusive() { return inclusive != null && inclusive; } NumberIntervalBoundary(); NumberIntervalBoundary(Double boundary); NumberIntervalBoundary(Double boundary, Boolean inclusive); }
NumberIntervalBoundary { @JsonIgnore public boolean isInclusive() { return inclusive != null && inclusive; } NumberIntervalBoundary(); NumberIntervalBoundary(Double boundary); NumberIntervalBoundary(Double boundary, Boolean inclusive); @Override boolean equals(Object obj); @Override int hashCode(); int compareBoundar...
NumberIntervalBoundary { @JsonIgnore public boolean isInclusive() { return inclusive != null && inclusive; } NumberIntervalBoundary(); NumberIntervalBoundary(Double boundary); NumberIntervalBoundary(Double boundary, Boolean inclusive); @Override boolean equals(Object obj); @Override int hashCode(); int compareBoundar...
@Test public void testNotIsInclusiveWhenConstructedWithFalse() { NumberIntervalBoundary instance = new NumberIntervalBoundary(0.0, false); assertFalse(instance.isInclusive()); }
@JsonIgnore public boolean isInclusive() { return inclusive != null && inclusive; }
NumberIntervalBoundary { @JsonIgnore public boolean isInclusive() { return inclusive != null && inclusive; } }
NumberIntervalBoundary { @JsonIgnore public boolean isInclusive() { return inclusive != null && inclusive; } NumberIntervalBoundary(); NumberIntervalBoundary(Double boundary); NumberIntervalBoundary(Double boundary, Boolean inclusive); }
NumberIntervalBoundary { @JsonIgnore public boolean isInclusive() { return inclusive != null && inclusive; } NumberIntervalBoundary(); NumberIntervalBoundary(Double boundary); NumberIntervalBoundary(Double boundary, Boolean inclusive); @Override boolean equals(Object obj); @Override int hashCode(); int compareBoundar...
NumberIntervalBoundary { @JsonIgnore public boolean isInclusive() { return inclusive != null && inclusive; } NumberIntervalBoundary(); NumberIntervalBoundary(Double boundary); NumberIntervalBoundary(Double boundary, Boolean inclusive); @Override boolean equals(Object obj); @Override int hashCode(); int compareBoundar...
@Test public void testNotIsInclusiveWhenConstructedWithNull() { NumberIntervalBoundary instance = new NumberIntervalBoundary(0.0, null); assertFalse(instance.isInclusive()); }
@JsonIgnore public boolean isInclusive() { return inclusive != null && inclusive; }
NumberIntervalBoundary { @JsonIgnore public boolean isInclusive() { return inclusive != null && inclusive; } }
NumberIntervalBoundary { @JsonIgnore public boolean isInclusive() { return inclusive != null && inclusive; } NumberIntervalBoundary(); NumberIntervalBoundary(Double boundary); NumberIntervalBoundary(Double boundary, Boolean inclusive); }
NumberIntervalBoundary { @JsonIgnore public boolean isInclusive() { return inclusive != null && inclusive; } NumberIntervalBoundary(); NumberIntervalBoundary(Double boundary); NumberIntervalBoundary(Double boundary, Boolean inclusive); @Override boolean equals(Object obj); @Override int hashCode(); int compareBoundar...
NumberIntervalBoundary { @JsonIgnore public boolean isInclusive() { return inclusive != null && inclusive; } NumberIntervalBoundary(); NumberIntervalBoundary(Double boundary); NumberIntervalBoundary(Double boundary, Boolean inclusive); @Override boolean equals(Object obj); @Override int hashCode(); int compareBoundar...
@Test public void testIsInclusiveWhenConstructedWithTrue() { NumberIntervalBoundary instance = new NumberIntervalBoundary(0.0, true); assertTrue(instance.isInclusive()); }
@JsonIgnore public boolean isInclusive() { return inclusive != null && inclusive; }
NumberIntervalBoundary { @JsonIgnore public boolean isInclusive() { return inclusive != null && inclusive; } }
NumberIntervalBoundary { @JsonIgnore public boolean isInclusive() { return inclusive != null && inclusive; } NumberIntervalBoundary(); NumberIntervalBoundary(Double boundary); NumberIntervalBoundary(Double boundary, Boolean inclusive); }
NumberIntervalBoundary { @JsonIgnore public boolean isInclusive() { return inclusive != null && inclusive; } NumberIntervalBoundary(); NumberIntervalBoundary(Double boundary); NumberIntervalBoundary(Double boundary, Boolean inclusive); @Override boolean equals(Object obj); @Override int hashCode(); int compareBoundar...
NumberIntervalBoundary { @JsonIgnore public boolean isInclusive() { return inclusive != null && inclusive; } NumberIntervalBoundary(); NumberIntervalBoundary(Double boundary); NumberIntervalBoundary(Double boundary, Boolean inclusive); @Override boolean equals(Object obj); @Override int hashCode(); int compareBoundar...
@Test public void testCompareBoundaryTo() { NumberIntervalBoundary instance = new NumberIntervalBoundary(0.0); assertThat(instance.compareBoundaryTo(new NumberIntervalBoundary(0.0)), comparesEqualTo(0)); assertThat(instance.compareBoundaryTo(new NumberIntervalBoundary(-5.0)), greaterThan(0)); assertThat(instance.compar...
public int compareBoundaryTo(NumberIntervalBoundary rhs) { return boundary.compareTo(rhs.getBoundary()); }
NumberIntervalBoundary { public int compareBoundaryTo(NumberIntervalBoundary rhs) { return boundary.compareTo(rhs.getBoundary()); } }
NumberIntervalBoundary { public int compareBoundaryTo(NumberIntervalBoundary rhs) { return boundary.compareTo(rhs.getBoundary()); } NumberIntervalBoundary(); NumberIntervalBoundary(Double boundary); NumberIntervalBoundary(Double boundary, Boolean inclusive); }
NumberIntervalBoundary { public int compareBoundaryTo(NumberIntervalBoundary rhs) { return boundary.compareTo(rhs.getBoundary()); } NumberIntervalBoundary(); NumberIntervalBoundary(Double boundary); NumberIntervalBoundary(Double boundary, Boolean inclusive); @Override boolean equals(Object obj); @Override int hashCod...
NumberIntervalBoundary { public int compareBoundaryTo(NumberIntervalBoundary rhs) { return boundary.compareTo(rhs.getBoundary()); } NumberIntervalBoundary(); NumberIntervalBoundary(Double boundary); NumberIntervalBoundary(Double boundary, Boolean inclusive); @Override boolean equals(Object obj); @Override int hashCod...
@Test public void testToString() { NumberInterval instance; instance = new NumberInterval(); assertEquals("null, null", instance.toString()); instance = new NumberInterval( NumberIntervalBoundary.NEGATIVE_INFINITY, NumberIntervalBoundary.POSITIVE_INFINITY); assertEquals("(-Infinity, Infinity)", instance.toString()); in...
@Override public String toString() { return lowToString() + ", " + highToString(); }
NumberInterval { @Override public String toString() { return lowToString() + ", " + highToString(); } }
NumberInterval { @Override public String toString() { return lowToString() + ", " + highToString(); } NumberInterval(); NumberInterval(NumberIntervalBoundary low, NumberIntervalBoundary high); }
NumberInterval { @Override public String toString() { return lowToString() + ", " + highToString(); } NumberInterval(); NumberInterval(NumberIntervalBoundary low, NumberIntervalBoundary high); @Override boolean equals(Object obj); @Override int hashCode(); @Override String toString(); void validate(); boolean overlaps...
NumberInterval { @Override public String toString() { return lowToString() + ", " + highToString(); } NumberInterval(); NumberInterval(NumberIntervalBoundary low, NumberIntervalBoundary high); @Override boolean equals(Object obj); @Override int hashCode(); @Override String toString(); void validate(); boolean overlaps...
@Test public void testValidateValid() throws Exception { NumberIntervalBoundary instance = new NumberIntervalBoundary(0.0); instance.validate(); }
public void validate() throws BadValueException { if (boundary == null) { throw new BadValueException("NumberIntervalBoundary.boundary is required"); } }
NumberIntervalBoundary { public void validate() throws BadValueException { if (boundary == null) { throw new BadValueException("NumberIntervalBoundary.boundary is required"); } } }
NumberIntervalBoundary { public void validate() throws BadValueException { if (boundary == null) { throw new BadValueException("NumberIntervalBoundary.boundary is required"); } } NumberIntervalBoundary(); NumberIntervalBoundary(Double boundary); NumberIntervalBoundary(Double boundary, Boolean inclusive); }
NumberIntervalBoundary { public void validate() throws BadValueException { if (boundary == null) { throw new BadValueException("NumberIntervalBoundary.boundary is required"); } } NumberIntervalBoundary(); NumberIntervalBoundary(Double boundary); NumberIntervalBoundary(Double boundary, Boolean inclusive); @Override bo...
NumberIntervalBoundary { public void validate() throws BadValueException { if (boundary == null) { throw new BadValueException("NumberIntervalBoundary.boundary is required"); } } NumberIntervalBoundary(); NumberIntervalBoundary(Double boundary); NumberIntervalBoundary(Double boundary, Boolean inclusive); @Override bo...
@Test(expected = BadValueException.class) public void testValidateInvalid() throws Exception { NumberIntervalBoundary instance = new NumberIntervalBoundary(); instance.validate(); }
public void validate() throws BadValueException { if (boundary == null) { throw new BadValueException("NumberIntervalBoundary.boundary is required"); } }
NumberIntervalBoundary { public void validate() throws BadValueException { if (boundary == null) { throw new BadValueException("NumberIntervalBoundary.boundary is required"); } } }
NumberIntervalBoundary { public void validate() throws BadValueException { if (boundary == null) { throw new BadValueException("NumberIntervalBoundary.boundary is required"); } } NumberIntervalBoundary(); NumberIntervalBoundary(Double boundary); NumberIntervalBoundary(Double boundary, Boolean inclusive); }
NumberIntervalBoundary { public void validate() throws BadValueException { if (boundary == null) { throw new BadValueException("NumberIntervalBoundary.boundary is required"); } } NumberIntervalBoundary(); NumberIntervalBoundary(Double boundary); NumberIntervalBoundary(Double boundary, Boolean inclusive); @Override bo...
NumberIntervalBoundary { public void validate() throws BadValueException { if (boundary == null) { throw new BadValueException("NumberIntervalBoundary.boundary is required"); } } NumberIntervalBoundary(); NumberIntervalBoundary(Double boundary); NumberIntervalBoundary(Double boundary, Boolean inclusive); @Override bo...
@Test public void testCleanShutdown() throws InterruptedException { final int wait = 1; ExecutorService threadPool = mock(ExecutorService.class); when(threadPool.awaitTermination(wait, TimeUnit.SECONDS)).thenReturn(true); ThreadPoolKiller.shutdown(threadPool, "TestPool", wait); verify(threadPool).shutdown(); verify(thr...
public static void shutdown(ExecutorService threadPool, String name) { shutdown(threadPool, name, DEFAULT_WAIT_DOWN_SECONDS); }
ThreadPoolKiller { public static void shutdown(ExecutorService threadPool, String name) { shutdown(threadPool, name, DEFAULT_WAIT_DOWN_SECONDS); } }
ThreadPoolKiller { public static void shutdown(ExecutorService threadPool, String name) { shutdown(threadPool, name, DEFAULT_WAIT_DOWN_SECONDS); } }
ThreadPoolKiller { public static void shutdown(ExecutorService threadPool, String name) { shutdown(threadPool, name, DEFAULT_WAIT_DOWN_SECONDS); } static void shutdown(ExecutorService threadPool, String name); static void shutdown(ExecutorService threadPool, String name, long waitSeconds); }
ThreadPoolKiller { public static void shutdown(ExecutorService threadPool, String name) { shutdown(threadPool, name, DEFAULT_WAIT_DOWN_SECONDS); } static void shutdown(ExecutorService threadPool, String name); static void shutdown(ExecutorService threadPool, String name, long waitSeconds); static final long DEFAULT_WA...
@Test public void testForcedShutdown() throws InterruptedException { final int wait = 1; ExecutorService threadPool = mock(ExecutorService.class); when(threadPool.awaitTermination(wait, TimeUnit.SECONDS)).thenReturn(false).thenReturn(true); ThreadPoolKiller.shutdown(threadPool, "TestPool", wait); verify(threadPool).shu...
public static void shutdown(ExecutorService threadPool, String name) { shutdown(threadPool, name, DEFAULT_WAIT_DOWN_SECONDS); }
ThreadPoolKiller { public static void shutdown(ExecutorService threadPool, String name) { shutdown(threadPool, name, DEFAULT_WAIT_DOWN_SECONDS); } }
ThreadPoolKiller { public static void shutdown(ExecutorService threadPool, String name) { shutdown(threadPool, name, DEFAULT_WAIT_DOWN_SECONDS); } }
ThreadPoolKiller { public static void shutdown(ExecutorService threadPool, String name) { shutdown(threadPool, name, DEFAULT_WAIT_DOWN_SECONDS); } static void shutdown(ExecutorService threadPool, String name); static void shutdown(ExecutorService threadPool, String name, long waitSeconds); }
ThreadPoolKiller { public static void shutdown(ExecutorService threadPool, String name) { shutdown(threadPool, name, DEFAULT_WAIT_DOWN_SECONDS); } static void shutdown(ExecutorService threadPool, String name); static void shutdown(ExecutorService threadPool, String name, long waitSeconds); static final long DEFAULT_WA...
@Test public void testForcedShutdownTimesOut() throws InterruptedException { final int wait = 1; ExecutorService threadPool = mock(ExecutorService.class); when(threadPool.awaitTermination(wait, TimeUnit.SECONDS)).thenReturn(false).thenReturn(false); ThreadPoolKiller.shutdown(threadPool, "TestPool", wait); verify(thread...
public static void shutdown(ExecutorService threadPool, String name) { shutdown(threadPool, name, DEFAULT_WAIT_DOWN_SECONDS); }
ThreadPoolKiller { public static void shutdown(ExecutorService threadPool, String name) { shutdown(threadPool, name, DEFAULT_WAIT_DOWN_SECONDS); } }
ThreadPoolKiller { public static void shutdown(ExecutorService threadPool, String name) { shutdown(threadPool, name, DEFAULT_WAIT_DOWN_SECONDS); } }
ThreadPoolKiller { public static void shutdown(ExecutorService threadPool, String name) { shutdown(threadPool, name, DEFAULT_WAIT_DOWN_SECONDS); } static void shutdown(ExecutorService threadPool, String name); static void shutdown(ExecutorService threadPool, String name, long waitSeconds); }
ThreadPoolKiller { public static void shutdown(ExecutorService threadPool, String name) { shutdown(threadPool, name, DEFAULT_WAIT_DOWN_SECONDS); } static void shutdown(ExecutorService threadPool, String name); static void shutdown(ExecutorService threadPool, String name, long waitSeconds); static final long DEFAULT_WA...
@Test public void testShutdownInterrupted() throws InterruptedException { final int wait = 1; ExecutorService threadPool = mock(ExecutorService.class); when(threadPool.awaitTermination(wait, TimeUnit.SECONDS)).thenThrow(InterruptedException.class); ThreadPoolKiller.shutdown(threadPool, "TestPool", wait); verify(threadP...
public static void shutdown(ExecutorService threadPool, String name) { shutdown(threadPool, name, DEFAULT_WAIT_DOWN_SECONDS); }
ThreadPoolKiller { public static void shutdown(ExecutorService threadPool, String name) { shutdown(threadPool, name, DEFAULT_WAIT_DOWN_SECONDS); } }
ThreadPoolKiller { public static void shutdown(ExecutorService threadPool, String name) { shutdown(threadPool, name, DEFAULT_WAIT_DOWN_SECONDS); } }
ThreadPoolKiller { public static void shutdown(ExecutorService threadPool, String name) { shutdown(threadPool, name, DEFAULT_WAIT_DOWN_SECONDS); } static void shutdown(ExecutorService threadPool, String name); static void shutdown(ExecutorService threadPool, String name, long waitSeconds); }
ThreadPoolKiller { public static void shutdown(ExecutorService threadPool, String name) { shutdown(threadPool, name, DEFAULT_WAIT_DOWN_SECONDS); } static void shutdown(ExecutorService threadPool, String name); static void shutdown(ExecutorService threadPool, String name, long waitSeconds); static final long DEFAULT_WA...
@Test public void testShutdownDefaultTimeout() throws InterruptedException { final long wait = ThreadPoolKiller.DEFAULT_WAIT_DOWN_SECONDS; ExecutorService threadPool = mock(ExecutorService.class); when(threadPool.awaitTermination(wait, TimeUnit.SECONDS)).thenReturn(true); ThreadPoolKiller.shutdown(threadPool, "TestPool...
public static void shutdown(ExecutorService threadPool, String name) { shutdown(threadPool, name, DEFAULT_WAIT_DOWN_SECONDS); }
ThreadPoolKiller { public static void shutdown(ExecutorService threadPool, String name) { shutdown(threadPool, name, DEFAULT_WAIT_DOWN_SECONDS); } }
ThreadPoolKiller { public static void shutdown(ExecutorService threadPool, String name) { shutdown(threadPool, name, DEFAULT_WAIT_DOWN_SECONDS); } }
ThreadPoolKiller { public static void shutdown(ExecutorService threadPool, String name) { shutdown(threadPool, name, DEFAULT_WAIT_DOWN_SECONDS); } static void shutdown(ExecutorService threadPool, String name); static void shutdown(ExecutorService threadPool, String name, long waitSeconds); }
ThreadPoolKiller { public static void shutdown(ExecutorService threadPool, String name) { shutdown(threadPool, name, DEFAULT_WAIT_DOWN_SECONDS); } static void shutdown(ExecutorService threadPool, String name); static void shutdown(ExecutorService threadPool, String name, long waitSeconds); static final long DEFAULT_WA...
@Test public void create() throws Exception { String agentRef = UUID.randomUUID().toString(); stubFor(post(urlEqualTo("/api/routers/" + routerRef + "/agents")) .withHeader("Accept", equalTo("application/json")) .willReturn(aResponse() .withStatus(201) .withHeader("Content-Type", "application/json") .withBody("{\"ref\":...
@Override public ApiObjectRef create(CreateAgentArg createArg, String routerRef) throws CommsRouterException { return post(createArg, routerRef); }
AgentServiceClient extends ServiceClientBase<AgentDto, ApiObjectRef> implements AgentService { @Override public ApiObjectRef create(CreateAgentArg createArg, String routerRef) throws CommsRouterException { return post(createArg, routerRef); } }
AgentServiceClient extends ServiceClientBase<AgentDto, ApiObjectRef> implements AgentService { @Override public ApiObjectRef create(CreateAgentArg createArg, String routerRef) throws CommsRouterException { return post(createArg, routerRef); } @Inject AgentServiceClient(Client client, String endpoint, String routerRef)...
AgentServiceClient extends ServiceClientBase<AgentDto, ApiObjectRef> implements AgentService { @Override public ApiObjectRef create(CreateAgentArg createArg, String routerRef) throws CommsRouterException { return post(createArg, routerRef); } @Inject AgentServiceClient(Client client, String endpoint, String routerRef)...
AgentServiceClient extends ServiceClientBase<AgentDto, ApiObjectRef> implements AgentService { @Override public ApiObjectRef create(CreateAgentArg createArg, String routerRef) throws CommsRouterException { return post(createArg, routerRef); } @Inject AgentServiceClient(Client client, String endpoint, String routerRef)...
@Test public void createWithId() throws Exception { String agentRef = UUID.randomUUID().toString(); stubFor(put(urlEqualTo("/api/routers/" + routerRef + "/agents/" + agentRef)) .withHeader("Accept", equalTo("application/json")) .willReturn(aResponse() .withStatus(201) .withHeader("Content-Type", "application/json") .wi...
@Override public ApiObjectRef replace(CreateAgentArg createArg, RouterObjectRef objectRef) throws CommsRouterException { return put(createArg, objectRef); }
AgentServiceClient extends ServiceClientBase<AgentDto, ApiObjectRef> implements AgentService { @Override public ApiObjectRef replace(CreateAgentArg createArg, RouterObjectRef objectRef) throws CommsRouterException { return put(createArg, objectRef); } }
AgentServiceClient extends ServiceClientBase<AgentDto, ApiObjectRef> implements AgentService { @Override public ApiObjectRef replace(CreateAgentArg createArg, RouterObjectRef objectRef) throws CommsRouterException { return put(createArg, objectRef); } @Inject AgentServiceClient(Client client, String endpoint, String r...
AgentServiceClient extends ServiceClientBase<AgentDto, ApiObjectRef> implements AgentService { @Override public ApiObjectRef replace(CreateAgentArg createArg, RouterObjectRef objectRef) throws CommsRouterException { return put(createArg, objectRef); } @Inject AgentServiceClient(Client client, String endpoint, String r...
AgentServiceClient extends ServiceClientBase<AgentDto, ApiObjectRef> implements AgentService { @Override public ApiObjectRef replace(CreateAgentArg createArg, RouterObjectRef objectRef) throws CommsRouterException { return put(createArg, objectRef); } @Inject AgentServiceClient(Client client, String endpoint, String r...
@Test public void update() throws Exception { String agentId = UUID.randomUUID().toString(); stubFor(put(urlEqualTo("/api/routers/" + routerRef + "/agents/" + agentId)) .withHeader("Accept", equalTo("application/json")) .willReturn(aResponse() .withStatus(204) .withHeader("Content-Type", "application/json"))); UpdateAg...
@Override public void update(UpdateAgentArg updateArg, RouterObjectRef objectRef) throws CommsRouterException { post(updateArg, objectRef); }
AgentServiceClient extends ServiceClientBase<AgentDto, ApiObjectRef> implements AgentService { @Override public void update(UpdateAgentArg updateArg, RouterObjectRef objectRef) throws CommsRouterException { post(updateArg, objectRef); } }
AgentServiceClient extends ServiceClientBase<AgentDto, ApiObjectRef> implements AgentService { @Override public void update(UpdateAgentArg updateArg, RouterObjectRef objectRef) throws CommsRouterException { post(updateArg, objectRef); } @Inject AgentServiceClient(Client client, String endpoint, String routerRef); }
AgentServiceClient extends ServiceClientBase<AgentDto, ApiObjectRef> implements AgentService { @Override public void update(UpdateAgentArg updateArg, RouterObjectRef objectRef) throws CommsRouterException { post(updateArg, objectRef); } @Inject AgentServiceClient(Client client, String endpoint, String routerRef); @Ove...
AgentServiceClient extends ServiceClientBase<AgentDto, ApiObjectRef> implements AgentService { @Override public void update(UpdateAgentArg updateArg, RouterObjectRef objectRef) throws CommsRouterException { post(updateArg, objectRef); } @Inject AgentServiceClient(Client client, String endpoint, String routerRef); @Ove...
@Test(expected = BadValueException.class) public void testValidateNoBoundaries() throws Exception { NumberInterval instance = new NumberInterval(); instance.validate(); }
public void validate() throws BadValueException { if (low == null) { throw new BadValueException("NumberInterval.low is required"); } if (high == null) { throw new BadValueException("NumberInterval.high is required"); } low.validate(); high.validate(); int compareLowHigh = low.compareBoundaryTo(high); if (compareLowHig...
NumberInterval { public void validate() throws BadValueException { if (low == null) { throw new BadValueException("NumberInterval.low is required"); } if (high == null) { throw new BadValueException("NumberInterval.high is required"); } low.validate(); high.validate(); int compareLowHigh = low.compareBoundaryTo(high); ...
NumberInterval { public void validate() throws BadValueException { if (low == null) { throw new BadValueException("NumberInterval.low is required"); } if (high == null) { throw new BadValueException("NumberInterval.high is required"); } low.validate(); high.validate(); int compareLowHigh = low.compareBoundaryTo(high); ...
NumberInterval { public void validate() throws BadValueException { if (low == null) { throw new BadValueException("NumberInterval.low is required"); } if (high == null) { throw new BadValueException("NumberInterval.high is required"); } low.validate(); high.validate(); int compareLowHigh = low.compareBoundaryTo(high); ...
NumberInterval { public void validate() throws BadValueException { if (low == null) { throw new BadValueException("NumberInterval.low is required"); } if (high == null) { throw new BadValueException("NumberInterval.high is required"); } low.validate(); high.validate(); int compareLowHigh = low.compareBoundaryTo(high); ...
@Test public void get() throws Exception { String agentId = UUID.randomUUID().toString(); AgentDto agent = new AgentDto(); agent.setAddress("sip:someone@somesip.pip"); stubFor(WireMock.get(urlEqualTo("/api/routers/" + routerRef + "/agents/" + agentId)) .withHeader("Accept", equalTo("application/json")) .willReturn(aRes...
@Override public AgentDto get(RouterObjectRef routerObjectRef) throws CommsRouterException { return getItem(routerObjectRef); }
AgentServiceClient extends ServiceClientBase<AgentDto, ApiObjectRef> implements AgentService { @Override public AgentDto get(RouterObjectRef routerObjectRef) throws CommsRouterException { return getItem(routerObjectRef); } }
AgentServiceClient extends ServiceClientBase<AgentDto, ApiObjectRef> implements AgentService { @Override public AgentDto get(RouterObjectRef routerObjectRef) throws CommsRouterException { return getItem(routerObjectRef); } @Inject AgentServiceClient(Client client, String endpoint, String routerRef); }
AgentServiceClient extends ServiceClientBase<AgentDto, ApiObjectRef> implements AgentService { @Override public AgentDto get(RouterObjectRef routerObjectRef) throws CommsRouterException { return getItem(routerObjectRef); } @Inject AgentServiceClient(Client client, String endpoint, String routerRef); @Override ApiObjec...
AgentServiceClient extends ServiceClientBase<AgentDto, ApiObjectRef> implements AgentService { @Override public AgentDto get(RouterObjectRef routerObjectRef) throws CommsRouterException { return getItem(routerObjectRef); } @Inject AgentServiceClient(Client client, String endpoint, String routerRef); @Override ApiObjec...
@Test public void list() throws Exception { }
@Override public PaginatedList<AgentDto> list(PagingRequest request) throws CommsRouterException { PagingRequest pagingRequest = new PagingRequest( routerRef, request.getToken(), request.getPerPage(), request.getSort(), request.getQuery()); return getList(pagingRequest, new GenericType<List<AgentDto>>() {}); }
AgentServiceClient extends ServiceClientBase<AgentDto, ApiObjectRef> implements AgentService { @Override public PaginatedList<AgentDto> list(PagingRequest request) throws CommsRouterException { PagingRequest pagingRequest = new PagingRequest( routerRef, request.getToken(), request.getPerPage(), request.getSort(), reque...
AgentServiceClient extends ServiceClientBase<AgentDto, ApiObjectRef> implements AgentService { @Override public PaginatedList<AgentDto> list(PagingRequest request) throws CommsRouterException { PagingRequest pagingRequest = new PagingRequest( routerRef, request.getToken(), request.getPerPage(), request.getSort(), reque...
AgentServiceClient extends ServiceClientBase<AgentDto, ApiObjectRef> implements AgentService { @Override public PaginatedList<AgentDto> list(PagingRequest request) throws CommsRouterException { PagingRequest pagingRequest = new PagingRequest( routerRef, request.getToken(), request.getPerPage(), request.getSort(), reque...
AgentServiceClient extends ServiceClientBase<AgentDto, ApiObjectRef> implements AgentService { @Override public PaginatedList<AgentDto> list(PagingRequest request) throws CommsRouterException { PagingRequest pagingRequest = new PagingRequest( routerRef, request.getToken(), request.getPerPage(), request.getSort(), reque...
@Test public void delete() throws Exception { String agentRef = UUID.randomUUID().toString(); stubFor(WireMock.delete(urlEqualTo("/api/routers/" + routerRef + "/agents/" + agentRef)) .withHeader("Accept", equalTo("application/json")) .willReturn(aResponse() .withStatus(204) .withHeader("Content-Type", "application/json...
@Override public void delete(RouterObjectRef routerObjectRef) { routerObjectRef.setRouterRef(routerRef); deleteRequest(routerObjectRef); }
AgentServiceClient extends ServiceClientBase<AgentDto, ApiObjectRef> implements AgentService { @Override public void delete(RouterObjectRef routerObjectRef) { routerObjectRef.setRouterRef(routerRef); deleteRequest(routerObjectRef); } }
AgentServiceClient extends ServiceClientBase<AgentDto, ApiObjectRef> implements AgentService { @Override public void delete(RouterObjectRef routerObjectRef) { routerObjectRef.setRouterRef(routerRef); deleteRequest(routerObjectRef); } @Inject AgentServiceClient(Client client, String endpoint, String routerRef); }
AgentServiceClient extends ServiceClientBase<AgentDto, ApiObjectRef> implements AgentService { @Override public void delete(RouterObjectRef routerObjectRef) { routerObjectRef.setRouterRef(routerRef); deleteRequest(routerObjectRef); } @Inject AgentServiceClient(Client client, String endpoint, String routerRef); @Overri...
AgentServiceClient extends ServiceClientBase<AgentDto, ApiObjectRef> implements AgentService { @Override public void delete(RouterObjectRef routerObjectRef) { routerObjectRef.setRouterRef(routerRef); deleteRequest(routerObjectRef); } @Inject AgentServiceClient(Client client, String endpoint, String routerRef); @Overri...
@Test public void getJwtAuthMethod() throws Exception { assertNotNull("JWT is not null", configuration.getJwtAuthMethod()); }
@Override public JWTAuthMethod getJwtAuthMethod() { return jwtAuthMethod; }
ConfigurationImpl implements Configuration { @Override public JWTAuthMethod getJwtAuthMethod() { return jwtAuthMethod; } }
ConfigurationImpl implements Configuration { @Override public JWTAuthMethod getJwtAuthMethod() { return jwtAuthMethod; } @Inject ConfigurationImpl(ConfigurationProperties properties); }
ConfigurationImpl implements Configuration { @Override public JWTAuthMethod getJwtAuthMethod() { return jwtAuthMethod; } @Inject ConfigurationImpl(ConfigurationProperties properties); @Override JWTAuthMethod getJwtAuthMethod(); @Override Endpoint getAssociatedPhone(); @Override String getCallbackBaseUrl(); @Override S...
ConfigurationImpl implements Configuration { @Override public JWTAuthMethod getJwtAuthMethod() { return jwtAuthMethod; } @Inject ConfigurationImpl(ConfigurationProperties properties); @Override JWTAuthMethod getJwtAuthMethod(); @Override Endpoint getAssociatedPhone(); @Override String getCallbackBaseUrl(); @Override S...
@Test public void getAssociatedPhone() throws Exception { assertEquals("Phone equals", "17072158889", configuration.getAssociatedPhone().toLog()); }
@Override public Endpoint getAssociatedPhone() { return phoneEndpoint; }
ConfigurationImpl implements Configuration { @Override public Endpoint getAssociatedPhone() { return phoneEndpoint; } }
ConfigurationImpl implements Configuration { @Override public Endpoint getAssociatedPhone() { return phoneEndpoint; } @Inject ConfigurationImpl(ConfigurationProperties properties); }
ConfigurationImpl implements Configuration { @Override public Endpoint getAssociatedPhone() { return phoneEndpoint; } @Inject ConfigurationImpl(ConfigurationProperties properties); @Override JWTAuthMethod getJwtAuthMethod(); @Override Endpoint getAssociatedPhone(); @Override String getCallbackBaseUrl(); @Override Stri...
ConfigurationImpl implements Configuration { @Override public Endpoint getAssociatedPhone() { return phoneEndpoint; } @Inject ConfigurationImpl(ConfigurationProperties properties); @Override JWTAuthMethod getJwtAuthMethod(); @Override Endpoint getAssociatedPhone(); @Override String getCallbackBaseUrl(); @Override Stri...
@Test public void getCallbackBaseUrl() throws Exception { assertEquals("Url equals", "https: }
@Override public String getCallbackBaseUrl() { return callbackBaseUrl; }
ConfigurationImpl implements Configuration { @Override public String getCallbackBaseUrl() { return callbackBaseUrl; } }
ConfigurationImpl implements Configuration { @Override public String getCallbackBaseUrl() { return callbackBaseUrl; } @Inject ConfigurationImpl(ConfigurationProperties properties); }
ConfigurationImpl implements Configuration { @Override public String getCallbackBaseUrl() { return callbackBaseUrl; } @Inject ConfigurationImpl(ConfigurationProperties properties); @Override JWTAuthMethod getJwtAuthMethod(); @Override Endpoint getAssociatedPhone(); @Override String getCallbackBaseUrl(); @Override Stri...
ConfigurationImpl implements Configuration { @Override public String getCallbackBaseUrl() { return callbackBaseUrl; } @Inject ConfigurationImpl(ConfigurationProperties properties); @Override JWTAuthMethod getJwtAuthMethod(); @Override Endpoint getAssociatedPhone(); @Override String getCallbackBaseUrl(); @Override Stri...
@Test public void getCallbackBaseUrl() throws Exception { assertEquals("Url equals", "https: }
@Override public String callbackBaseUrl() { return provider.getProperty("app.callbackBaseUrl", String.class); }
Cfg4jConfiguration implements ConfigurationProperties { @Override public String callbackBaseUrl() { return provider.getProperty("app.callbackBaseUrl", String.class); } }
Cfg4jConfiguration implements ConfigurationProperties { @Override public String callbackBaseUrl() { return provider.getProperty("app.callbackBaseUrl", String.class); } Cfg4jConfiguration(); }
Cfg4jConfiguration implements ConfigurationProperties { @Override public String callbackBaseUrl() { return provider.getProperty("app.callbackBaseUrl", String.class); } Cfg4jConfiguration(); @Override String callbackBaseUrl(); @Override String nexmoCallbackBaseUrl(); @Override String phone(); @Override String commsRoute...
Cfg4jConfiguration implements ConfigurationProperties { @Override public String callbackBaseUrl() { return provider.getProperty("app.callbackBaseUrl", String.class); } Cfg4jConfiguration(); @Override String callbackBaseUrl(); @Override String nexmoCallbackBaseUrl(); @Override String phone(); @Override String commsRoute...
@Test public void getPhone() throws Exception { assertEquals("Phone equals", "17072158889", configuration.phone()); }
@Override public String phone() { return provider.getProperty("app.phone", String.class); }
Cfg4jConfiguration implements ConfigurationProperties { @Override public String phone() { return provider.getProperty("app.phone", String.class); } }
Cfg4jConfiguration implements ConfigurationProperties { @Override public String phone() { return provider.getProperty("app.phone", String.class); } Cfg4jConfiguration(); }
Cfg4jConfiguration implements ConfigurationProperties { @Override public String phone() { return provider.getProperty("app.phone", String.class); } Cfg4jConfiguration(); @Override String callbackBaseUrl(); @Override String nexmoCallbackBaseUrl(); @Override String phone(); @Override String commsRouterUrl(); @Override St...
Cfg4jConfiguration implements ConfigurationProperties { @Override public String phone() { return provider.getProperty("app.phone", String.class); } Cfg4jConfiguration(); @Override String callbackBaseUrl(); @Override String nexmoCallbackBaseUrl(); @Override String phone(); @Override String commsRouterUrl(); @Override St...
@Test public void getAppId() throws Exception { assertEquals("App Id equals", "some-app-id", configuration.appId()); }
@Override public String appId() { return provider.getProperty("nexmo.appId", String.class); }
Cfg4jConfiguration implements ConfigurationProperties { @Override public String appId() { return provider.getProperty("nexmo.appId", String.class); } }
Cfg4jConfiguration implements ConfigurationProperties { @Override public String appId() { return provider.getProperty("nexmo.appId", String.class); } Cfg4jConfiguration(); }
Cfg4jConfiguration implements ConfigurationProperties { @Override public String appId() { return provider.getProperty("nexmo.appId", String.class); } Cfg4jConfiguration(); @Override String callbackBaseUrl(); @Override String nexmoCallbackBaseUrl(); @Override String phone(); @Override String commsRouterUrl(); @Override ...
Cfg4jConfiguration implements ConfigurationProperties { @Override public String appId() { return provider.getProperty("nexmo.appId", String.class); } Cfg4jConfiguration(); @Override String callbackBaseUrl(); @Override String nexmoCallbackBaseUrl(); @Override String phone(); @Override String commsRouterUrl(); @Override ...
@Test public void getPrivateKey() throws Exception { assertNotNull("JWT is not null", configuration.appPrivateKey()); }
@Override public String appPrivateKey() { return provider.getProperty("nexmo.appPrivateKey", String.class); }
Cfg4jConfiguration implements ConfigurationProperties { @Override public String appPrivateKey() { return provider.getProperty("nexmo.appPrivateKey", String.class); } }
Cfg4jConfiguration implements ConfigurationProperties { @Override public String appPrivateKey() { return provider.getProperty("nexmo.appPrivateKey", String.class); } Cfg4jConfiguration(); }
Cfg4jConfiguration implements ConfigurationProperties { @Override public String appPrivateKey() { return provider.getProperty("nexmo.appPrivateKey", String.class); } Cfg4jConfiguration(); @Override String callbackBaseUrl(); @Override String nexmoCallbackBaseUrl(); @Override String phone(); @Override String commsRouterU...
Cfg4jConfiguration implements ConfigurationProperties { @Override public String appPrivateKey() { return provider.getProperty("nexmo.appPrivateKey", String.class); } Cfg4jConfiguration(); @Override String callbackBaseUrl(); @Override String nexmoCallbackBaseUrl(); @Override String phone(); @Override String commsRouterU...
@Test(expected = BadValueException.class) public void testValidateNoLow() throws Exception { NumberInterval instance = new NumberInterval(null, NumberIntervalBoundary.POSITIVE_INFINITY); instance.validate(); }
public void validate() throws BadValueException { if (low == null) { throw new BadValueException("NumberInterval.low is required"); } if (high == null) { throw new BadValueException("NumberInterval.high is required"); } low.validate(); high.validate(); int compareLowHigh = low.compareBoundaryTo(high); if (compareLowHig...
NumberInterval { public void validate() throws BadValueException { if (low == null) { throw new BadValueException("NumberInterval.low is required"); } if (high == null) { throw new BadValueException("NumberInterval.high is required"); } low.validate(); high.validate(); int compareLowHigh = low.compareBoundaryTo(high); ...
NumberInterval { public void validate() throws BadValueException { if (low == null) { throw new BadValueException("NumberInterval.low is required"); } if (high == null) { throw new BadValueException("NumberInterval.high is required"); } low.validate(); high.validate(); int compareLowHigh = low.compareBoundaryTo(high); ...
NumberInterval { public void validate() throws BadValueException { if (low == null) { throw new BadValueException("NumberInterval.low is required"); } if (high == null) { throw new BadValueException("NumberInterval.high is required"); } low.validate(); high.validate(); int compareLowHigh = low.compareBoundaryTo(high); ...
NumberInterval { public void validate() throws BadValueException { if (low == null) { throw new BadValueException("NumberInterval.low is required"); } if (high == null) { throw new BadValueException("NumberInterval.high is required"); } low.validate(); high.validate(); int compareLowHigh = low.compareBoundaryTo(high); ...
@Test public void getCallbackBaseUrl() throws Exception { assertEquals("Url equals", "https: }
@Override public String callbackBaseUrl() { return properties.getProperty(CALLBACK_BASE_URL); }
PropertiesConfiguration implements ConfigurationProperties { @Override public String callbackBaseUrl() { return properties.getProperty(CALLBACK_BASE_URL); } }
PropertiesConfiguration implements ConfigurationProperties { @Override public String callbackBaseUrl() { return properties.getProperty(CALLBACK_BASE_URL); } PropertiesConfiguration(); }
PropertiesConfiguration implements ConfigurationProperties { @Override public String callbackBaseUrl() { return properties.getProperty(CALLBACK_BASE_URL); } PropertiesConfiguration(); @Override String callbackBaseUrl(); @Override String nexmoCallbackBaseUrl(); @Override String phone(); @Override String commsRouterUrl()...
PropertiesConfiguration implements ConfigurationProperties { @Override public String callbackBaseUrl() { return properties.getProperty(CALLBACK_BASE_URL); } PropertiesConfiguration(); @Override String callbackBaseUrl(); @Override String nexmoCallbackBaseUrl(); @Override String phone(); @Override String commsRouterUrl()...
@Test public void getPhone() throws Exception { assertEquals("Phone equals", "17072158889", configuration.phone()); }
@Override public String phone() { return properties.getProperty(APP_PHONE); }
PropertiesConfiguration implements ConfigurationProperties { @Override public String phone() { return properties.getProperty(APP_PHONE); } }
PropertiesConfiguration implements ConfigurationProperties { @Override public String phone() { return properties.getProperty(APP_PHONE); } PropertiesConfiguration(); }
PropertiesConfiguration implements ConfigurationProperties { @Override public String phone() { return properties.getProperty(APP_PHONE); } PropertiesConfiguration(); @Override String callbackBaseUrl(); @Override String nexmoCallbackBaseUrl(); @Override String phone(); @Override String commsRouterUrl(); @Override String...
PropertiesConfiguration implements ConfigurationProperties { @Override public String phone() { return properties.getProperty(APP_PHONE); } PropertiesConfiguration(); @Override String callbackBaseUrl(); @Override String nexmoCallbackBaseUrl(); @Override String phone(); @Override String commsRouterUrl(); @Override String...
@Test public void getAppId() throws Exception { assertEquals("App Id equals", "some-app-id", configuration.appId()); }
@Override public String appId() { return properties.getProperty(NEXMO_APP_ID); }
PropertiesConfiguration implements ConfigurationProperties { @Override public String appId() { return properties.getProperty(NEXMO_APP_ID); } }
PropertiesConfiguration implements ConfigurationProperties { @Override public String appId() { return properties.getProperty(NEXMO_APP_ID); } PropertiesConfiguration(); }
PropertiesConfiguration implements ConfigurationProperties { @Override public String appId() { return properties.getProperty(NEXMO_APP_ID); } PropertiesConfiguration(); @Override String callbackBaseUrl(); @Override String nexmoCallbackBaseUrl(); @Override String phone(); @Override String commsRouterUrl(); @Override Str...
PropertiesConfiguration implements ConfigurationProperties { @Override public String appId() { return properties.getProperty(NEXMO_APP_ID); } PropertiesConfiguration(); @Override String callbackBaseUrl(); @Override String nexmoCallbackBaseUrl(); @Override String phone(); @Override String commsRouterUrl(); @Override Str...
@Test public void getPrivateKey() throws Exception { assertNotNull("JWT is not null", configuration.appPrivateKey()); }
@Override public String appPrivateKey() { return properties.getProperty(NEXMO_APP_PRIVATE_KEY); }
PropertiesConfiguration implements ConfigurationProperties { @Override public String appPrivateKey() { return properties.getProperty(NEXMO_APP_PRIVATE_KEY); } }
PropertiesConfiguration implements ConfigurationProperties { @Override public String appPrivateKey() { return properties.getProperty(NEXMO_APP_PRIVATE_KEY); } PropertiesConfiguration(); }
PropertiesConfiguration implements ConfigurationProperties { @Override public String appPrivateKey() { return properties.getProperty(NEXMO_APP_PRIVATE_KEY); } PropertiesConfiguration(); @Override String callbackBaseUrl(); @Override String nexmoCallbackBaseUrl(); @Override String phone(); @Override String commsRouterUrl...
PropertiesConfiguration implements ConfigurationProperties { @Override public String appPrivateKey() { return properties.getProperty(NEXMO_APP_PRIVATE_KEY); } PropertiesConfiguration(); @Override String callbackBaseUrl(); @Override String nexmoCallbackBaseUrl(); @Override String phone(); @Override String commsRouterUrl...
@Test public void testValidate() throws Exception { System.out.println("evaluate"); CommsRouterEvaluatorFactory ef = new CommsRouterEvaluatorFactory(); try { ef.provide("HAS(#{allowedBools}, true) && IN(true, #{allowedBools}) && #{~bool}", null).validate(); assertTrue(false); } catch (ExpressionException ex) { } try { ...
@Override public void validate() throws ExpressionException { long millis = System.currentTimeMillis(); evaluator.validateImpl(); LOGGER.trace("Predicate expression validation time is: {}", (System.currentTimeMillis() - millis)); }
JEvalEvaluator implements CommsRouterEvaluator { @Override public void validate() throws ExpressionException { long millis = System.currentTimeMillis(); evaluator.validateImpl(); LOGGER.trace("Predicate expression validation time is: {}", (System.currentTimeMillis() - millis)); } }
JEvalEvaluator implements CommsRouterEvaluator { @Override public void validate() throws ExpressionException { long millis = System.currentTimeMillis(); evaluator.validateImpl(); LOGGER.trace("Predicate expression validation time is: {}", (System.currentTimeMillis() - millis)); } JEvalEvaluator(CommsRouterEvaluatorFact...
JEvalEvaluator implements CommsRouterEvaluator { @Override public void validate() throws ExpressionException { long millis = System.currentTimeMillis(); evaluator.validateImpl(); LOGGER.trace("Predicate expression validation time is: {}", (System.currentTimeMillis() - millis)); } JEvalEvaluator(CommsRouterEvaluatorFact...
JEvalEvaluator implements CommsRouterEvaluator { @Override public void validate() throws ExpressionException { long millis = System.currentTimeMillis(); evaluator.validateImpl(); LOGGER.trace("Predicate expression validation time is: {}", (System.currentTimeMillis() - millis)); } JEvalEvaluator(CommsRouterEvaluatorFact...
@Test(expected = ExpressionException.class) public void comparisionGtMultyArgTest() throws Exception { rsqlEvaluatorFactory.create("skill>(1,2,3)", "routerRef"); }
public RsqlEvaluator create(String expression, String routerRef) throws ExpressionException { try { return new RsqlEvaluator(factory, parse(expression), routerRef); } catch (RSQLParserException ex) { throw new ExpressionException("Invalid expression: " + ex.getMessage()); } }
RsqlEvaluatorFactory { public RsqlEvaluator create(String expression, String routerRef) throws ExpressionException { try { return new RsqlEvaluator(factory, parse(expression), routerRef); } catch (RSQLParserException ex) { throw new ExpressionException("Invalid expression: " + ex.getMessage()); } } }
RsqlEvaluatorFactory { public RsqlEvaluator create(String expression, String routerRef) throws ExpressionException { try { return new RsqlEvaluator(factory, parse(expression), routerRef); } catch (RSQLParserException ex) { throw new ExpressionException("Invalid expression: " + ex.getMessage()); } } RsqlEvaluatorFactory...
RsqlEvaluatorFactory { public RsqlEvaluator create(String expression, String routerRef) throws ExpressionException { try { return new RsqlEvaluator(factory, parse(expression), routerRef); } catch (RSQLParserException ex) { throw new ExpressionException("Invalid expression: " + ex.getMessage()); } } RsqlEvaluatorFactory...
RsqlEvaluatorFactory { public RsqlEvaluator create(String expression, String routerRef) throws ExpressionException { try { return new RsqlEvaluator(factory, parse(expression), routerRef); } catch (RSQLParserException ex) { throw new ExpressionException("Invalid expression: " + ex.getMessage()); } } RsqlEvaluatorFactory...
@Test(expected = ExpressionException.class) public void comparisionGeMultyArgTest() throws Exception { rsqlEvaluatorFactory.create("skill>=(1,2,3)", "routerRef"); }
public RsqlEvaluator create(String expression, String routerRef) throws ExpressionException { try { return new RsqlEvaluator(factory, parse(expression), routerRef); } catch (RSQLParserException ex) { throw new ExpressionException("Invalid expression: " + ex.getMessage()); } }
RsqlEvaluatorFactory { public RsqlEvaluator create(String expression, String routerRef) throws ExpressionException { try { return new RsqlEvaluator(factory, parse(expression), routerRef); } catch (RSQLParserException ex) { throw new ExpressionException("Invalid expression: " + ex.getMessage()); } } }
RsqlEvaluatorFactory { public RsqlEvaluator create(String expression, String routerRef) throws ExpressionException { try { return new RsqlEvaluator(factory, parse(expression), routerRef); } catch (RSQLParserException ex) { throw new ExpressionException("Invalid expression: " + ex.getMessage()); } } RsqlEvaluatorFactory...
RsqlEvaluatorFactory { public RsqlEvaluator create(String expression, String routerRef) throws ExpressionException { try { return new RsqlEvaluator(factory, parse(expression), routerRef); } catch (RSQLParserException ex) { throw new ExpressionException("Invalid expression: " + ex.getMessage()); } } RsqlEvaluatorFactory...
RsqlEvaluatorFactory { public RsqlEvaluator create(String expression, String routerRef) throws ExpressionException { try { return new RsqlEvaluator(factory, parse(expression), routerRef); } catch (RSQLParserException ex) { throw new ExpressionException("Invalid expression: " + ex.getMessage()); } } RsqlEvaluatorFactory...
@Test(expected = ExpressionException.class) public void comparisionLtMultyArgTest() throws Exception { rsqlEvaluatorFactory.create("skill<(1,2,3)", "routerRef"); }
public RsqlEvaluator create(String expression, String routerRef) throws ExpressionException { try { return new RsqlEvaluator(factory, parse(expression), routerRef); } catch (RSQLParserException ex) { throw new ExpressionException("Invalid expression: " + ex.getMessage()); } }
RsqlEvaluatorFactory { public RsqlEvaluator create(String expression, String routerRef) throws ExpressionException { try { return new RsqlEvaluator(factory, parse(expression), routerRef); } catch (RSQLParserException ex) { throw new ExpressionException("Invalid expression: " + ex.getMessage()); } } }
RsqlEvaluatorFactory { public RsqlEvaluator create(String expression, String routerRef) throws ExpressionException { try { return new RsqlEvaluator(factory, parse(expression), routerRef); } catch (RSQLParserException ex) { throw new ExpressionException("Invalid expression: " + ex.getMessage()); } } RsqlEvaluatorFactory...
RsqlEvaluatorFactory { public RsqlEvaluator create(String expression, String routerRef) throws ExpressionException { try { return new RsqlEvaluator(factory, parse(expression), routerRef); } catch (RSQLParserException ex) { throw new ExpressionException("Invalid expression: " + ex.getMessage()); } } RsqlEvaluatorFactory...
RsqlEvaluatorFactory { public RsqlEvaluator create(String expression, String routerRef) throws ExpressionException { try { return new RsqlEvaluator(factory, parse(expression), routerRef); } catch (RSQLParserException ex) { throw new ExpressionException("Invalid expression: " + ex.getMessage()); } } RsqlEvaluatorFactory...
@Test(expected = ExpressionException.class) public void comparisionLeMultyArgTest() throws Exception { rsqlEvaluatorFactory.create("skill<=(1,2,3)", "routerRef"); }
public RsqlEvaluator create(String expression, String routerRef) throws ExpressionException { try { return new RsqlEvaluator(factory, parse(expression), routerRef); } catch (RSQLParserException ex) { throw new ExpressionException("Invalid expression: " + ex.getMessage()); } }
RsqlEvaluatorFactory { public RsqlEvaluator create(String expression, String routerRef) throws ExpressionException { try { return new RsqlEvaluator(factory, parse(expression), routerRef); } catch (RSQLParserException ex) { throw new ExpressionException("Invalid expression: " + ex.getMessage()); } } }
RsqlEvaluatorFactory { public RsqlEvaluator create(String expression, String routerRef) throws ExpressionException { try { return new RsqlEvaluator(factory, parse(expression), routerRef); } catch (RSQLParserException ex) { throw new ExpressionException("Invalid expression: " + ex.getMessage()); } } RsqlEvaluatorFactory...
RsqlEvaluatorFactory { public RsqlEvaluator create(String expression, String routerRef) throws ExpressionException { try { return new RsqlEvaluator(factory, parse(expression), routerRef); } catch (RSQLParserException ex) { throw new ExpressionException("Invalid expression: " + ex.getMessage()); } } RsqlEvaluatorFactory...
RsqlEvaluatorFactory { public RsqlEvaluator create(String expression, String routerRef) throws ExpressionException { try { return new RsqlEvaluator(factory, parse(expression), routerRef); } catch (RSQLParserException ex) { throw new ExpressionException("Invalid expression: " + ex.getMessage()); } } RsqlEvaluatorFactory...
@Test(expected = ExpressionException.class) public void comparisionEqMultyArgTest() throws Exception { rsqlEvaluatorFactory.create("skill==(1,2,3)", "routerRef"); }
public RsqlEvaluator create(String expression, String routerRef) throws ExpressionException { try { return new RsqlEvaluator(factory, parse(expression), routerRef); } catch (RSQLParserException ex) { throw new ExpressionException("Invalid expression: " + ex.getMessage()); } }
RsqlEvaluatorFactory { public RsqlEvaluator create(String expression, String routerRef) throws ExpressionException { try { return new RsqlEvaluator(factory, parse(expression), routerRef); } catch (RSQLParserException ex) { throw new ExpressionException("Invalid expression: " + ex.getMessage()); } } }
RsqlEvaluatorFactory { public RsqlEvaluator create(String expression, String routerRef) throws ExpressionException { try { return new RsqlEvaluator(factory, parse(expression), routerRef); } catch (RSQLParserException ex) { throw new ExpressionException("Invalid expression: " + ex.getMessage()); } } RsqlEvaluatorFactory...
RsqlEvaluatorFactory { public RsqlEvaluator create(String expression, String routerRef) throws ExpressionException { try { return new RsqlEvaluator(factory, parse(expression), routerRef); } catch (RSQLParserException ex) { throw new ExpressionException("Invalid expression: " + ex.getMessage()); } } RsqlEvaluatorFactory...
RsqlEvaluatorFactory { public RsqlEvaluator create(String expression, String routerRef) throws ExpressionException { try { return new RsqlEvaluator(factory, parse(expression), routerRef); } catch (RSQLParserException ex) { throw new ExpressionException("Invalid expression: " + ex.getMessage()); } } RsqlEvaluatorFactory...
@Test(expected = BadValueException.class) public void testValidateNoHigh() throws Exception { NumberInterval instance = new NumberInterval(NumberIntervalBoundary.NEGATIVE_INFINITY, null); instance.validate(); }
public void validate() throws BadValueException { if (low == null) { throw new BadValueException("NumberInterval.low is required"); } if (high == null) { throw new BadValueException("NumberInterval.high is required"); } low.validate(); high.validate(); int compareLowHigh = low.compareBoundaryTo(high); if (compareLowHig...
NumberInterval { public void validate() throws BadValueException { if (low == null) { throw new BadValueException("NumberInterval.low is required"); } if (high == null) { throw new BadValueException("NumberInterval.high is required"); } low.validate(); high.validate(); int compareLowHigh = low.compareBoundaryTo(high); ...
NumberInterval { public void validate() throws BadValueException { if (low == null) { throw new BadValueException("NumberInterval.low is required"); } if (high == null) { throw new BadValueException("NumberInterval.high is required"); } low.validate(); high.validate(); int compareLowHigh = low.compareBoundaryTo(high); ...
NumberInterval { public void validate() throws BadValueException { if (low == null) { throw new BadValueException("NumberInterval.low is required"); } if (high == null) { throw new BadValueException("NumberInterval.high is required"); } low.validate(); high.validate(); int compareLowHigh = low.compareBoundaryTo(high); ...
NumberInterval { public void validate() throws BadValueException { if (low == null) { throw new BadValueException("NumberInterval.low is required"); } if (high == null) { throw new BadValueException("NumberInterval.high is required"); } low.validate(); high.validate(); int compareLowHigh = low.compareBoundaryTo(high); ...
@Test(expected = ExpressionException.class) public void comparisionNeMultyArgTest() throws Exception { rsqlEvaluatorFactory.create("skill!=(1,2,3)", "routerRef"); }
public RsqlEvaluator create(String expression, String routerRef) throws ExpressionException { try { return new RsqlEvaluator(factory, parse(expression), routerRef); } catch (RSQLParserException ex) { throw new ExpressionException("Invalid expression: " + ex.getMessage()); } }
RsqlEvaluatorFactory { public RsqlEvaluator create(String expression, String routerRef) throws ExpressionException { try { return new RsqlEvaluator(factory, parse(expression), routerRef); } catch (RSQLParserException ex) { throw new ExpressionException("Invalid expression: " + ex.getMessage()); } } }
RsqlEvaluatorFactory { public RsqlEvaluator create(String expression, String routerRef) throws ExpressionException { try { return new RsqlEvaluator(factory, parse(expression), routerRef); } catch (RSQLParserException ex) { throw new ExpressionException("Invalid expression: " + ex.getMessage()); } } RsqlEvaluatorFactory...
RsqlEvaluatorFactory { public RsqlEvaluator create(String expression, String routerRef) throws ExpressionException { try { return new RsqlEvaluator(factory, parse(expression), routerRef); } catch (RSQLParserException ex) { throw new ExpressionException("Invalid expression: " + ex.getMessage()); } } RsqlEvaluatorFactory...
RsqlEvaluatorFactory { public RsqlEvaluator create(String expression, String routerRef) throws ExpressionException { try { return new RsqlEvaluator(factory, parse(expression), routerRef); } catch (RSQLParserException ex) { throw new ExpressionException("Invalid expression: " + ex.getMessage()); } } RsqlEvaluatorFactory...
@Test public void comparisionAllSingleArgTest() throws Exception { rsqlEvaluatorFactory.create("skill>1", "routerRef"); rsqlEvaluatorFactory.create("skill>=1", "routerRef"); rsqlEvaluatorFactory.create("skill<1", "routerRef"); rsqlEvaluatorFactory.create("skill<=1", "routerRef"); rsqlEvaluatorFactory.create("skill==1",...
public RsqlEvaluator create(String expression, String routerRef) throws ExpressionException { try { return new RsqlEvaluator(factory, parse(expression), routerRef); } catch (RSQLParserException ex) { throw new ExpressionException("Invalid expression: " + ex.getMessage()); } }
RsqlEvaluatorFactory { public RsqlEvaluator create(String expression, String routerRef) throws ExpressionException { try { return new RsqlEvaluator(factory, parse(expression), routerRef); } catch (RSQLParserException ex) { throw new ExpressionException("Invalid expression: " + ex.getMessage()); } } }
RsqlEvaluatorFactory { public RsqlEvaluator create(String expression, String routerRef) throws ExpressionException { try { return new RsqlEvaluator(factory, parse(expression), routerRef); } catch (RSQLParserException ex) { throw new ExpressionException("Invalid expression: " + ex.getMessage()); } } RsqlEvaluatorFactory...
RsqlEvaluatorFactory { public RsqlEvaluator create(String expression, String routerRef) throws ExpressionException { try { return new RsqlEvaluator(factory, parse(expression), routerRef); } catch (RSQLParserException ex) { throw new ExpressionException("Invalid expression: " + ex.getMessage()); } } RsqlEvaluatorFactory...
RsqlEvaluatorFactory { public RsqlEvaluator create(String expression, String routerRef) throws ExpressionException { try { return new RsqlEvaluator(factory, parse(expression), routerRef); } catch (RSQLParserException ex) { throw new ExpressionException("Invalid expression: " + ex.getMessage()); } } RsqlEvaluatorFactory...
@Test(expected = ExpressionException.class) public void evaluateExpressionInvalidAttributesNumber() throws Exception { String predicate = "languages=gt=en"; rsqlEvaluatorFactory.evaluate(predicate, attributeGroupe, "routerRef"); }
public boolean evaluate(String expression, AttributeGroup attributeGroup, String routerRef) throws ExpressionException { return create(expression, routerRef).evaluate(attributeGroup); }
RsqlEvaluatorFactory { public boolean evaluate(String expression, AttributeGroup attributeGroup, String routerRef) throws ExpressionException { return create(expression, routerRef).evaluate(attributeGroup); } }
RsqlEvaluatorFactory { public boolean evaluate(String expression, AttributeGroup attributeGroup, String routerRef) throws ExpressionException { return create(expression, routerRef).evaluate(attributeGroup); } RsqlEvaluatorFactory(CommsRouterEvaluatorFactory factory); }
RsqlEvaluatorFactory { public boolean evaluate(String expression, AttributeGroup attributeGroup, String routerRef) throws ExpressionException { return create(expression, routerRef).evaluate(attributeGroup); } RsqlEvaluatorFactory(CommsRouterEvaluatorFactory factory); Node parse(String expression); void validate(String ...
RsqlEvaluatorFactory { public boolean evaluate(String expression, AttributeGroup attributeGroup, String routerRef) throws ExpressionException { return create(expression, routerRef).evaluate(attributeGroup); } RsqlEvaluatorFactory(CommsRouterEvaluatorFactory factory); Node parse(String expression); void validate(String ...
@Test public void validateExpressionValid() throws Exception { String predicateOK1 = "language==en;price=in=(20,30,40);price=gt=10;boolTrue==true"; String predicateOK2 = "language==bg,price<100;boolFalse==false"; String predicateOK3 = "language=in=(en,fr,es);prices==30,color==blue"; rsqlEvaluatorFactory.validate(predic...
public void validate(String expression) throws ExpressionException { try { parse(expression); } catch (RSQLParserException ex) { throw new ExpressionException("Invalid expression: " + ex.getMessage()); } }
RsqlEvaluatorFactory { public void validate(String expression) throws ExpressionException { try { parse(expression); } catch (RSQLParserException ex) { throw new ExpressionException("Invalid expression: " + ex.getMessage()); } } }
RsqlEvaluatorFactory { public void validate(String expression) throws ExpressionException { try { parse(expression); } catch (RSQLParserException ex) { throw new ExpressionException("Invalid expression: " + ex.getMessage()); } } RsqlEvaluatorFactory(CommsRouterEvaluatorFactory factory); }
RsqlEvaluatorFactory { public void validate(String expression) throws ExpressionException { try { parse(expression); } catch (RSQLParserException ex) { throw new ExpressionException("Invalid expression: " + ex.getMessage()); } } RsqlEvaluatorFactory(CommsRouterEvaluatorFactory factory); Node parse(String expression); v...
RsqlEvaluatorFactory { public void validate(String expression) throws ExpressionException { try { parse(expression); } catch (RSQLParserException ex) { throw new ExpressionException("Invalid expression: " + ex.getMessage()); } } RsqlEvaluatorFactory(CommsRouterEvaluatorFactory factory); Node parse(String expression); v...
@Test(expected = ExpressionException.class) public void validateExpressionInalid1() throws Exception { String predicateNOK1 = "language===en"; rsqlEvaluatorFactory.validate(predicateNOK1); }
public void validate(String expression) throws ExpressionException { try { parse(expression); } catch (RSQLParserException ex) { throw new ExpressionException("Invalid expression: " + ex.getMessage()); } }
RsqlEvaluatorFactory { public void validate(String expression) throws ExpressionException { try { parse(expression); } catch (RSQLParserException ex) { throw new ExpressionException("Invalid expression: " + ex.getMessage()); } } }
RsqlEvaluatorFactory { public void validate(String expression) throws ExpressionException { try { parse(expression); } catch (RSQLParserException ex) { throw new ExpressionException("Invalid expression: " + ex.getMessage()); } } RsqlEvaluatorFactory(CommsRouterEvaluatorFactory factory); }
RsqlEvaluatorFactory { public void validate(String expression) throws ExpressionException { try { parse(expression); } catch (RSQLParserException ex) { throw new ExpressionException("Invalid expression: " + ex.getMessage()); } } RsqlEvaluatorFactory(CommsRouterEvaluatorFactory factory); Node parse(String expression); v...
RsqlEvaluatorFactory { public void validate(String expression) throws ExpressionException { try { parse(expression); } catch (RSQLParserException ex) { throw new ExpressionException("Invalid expression: " + ex.getMessage()); } } RsqlEvaluatorFactory(CommsRouterEvaluatorFactory factory); Node parse(String expression); v...
@Test(expected = ExpressionException.class) public void validateExpressionInalid2() throws Exception { String predicateNOK2 = "language==bg:boolFalse==true"; rsqlEvaluatorFactory.validate(predicateNOK2); }
public void validate(String expression) throws ExpressionException { try { parse(expression); } catch (RSQLParserException ex) { throw new ExpressionException("Invalid expression: " + ex.getMessage()); } }
RsqlEvaluatorFactory { public void validate(String expression) throws ExpressionException { try { parse(expression); } catch (RSQLParserException ex) { throw new ExpressionException("Invalid expression: " + ex.getMessage()); } } }
RsqlEvaluatorFactory { public void validate(String expression) throws ExpressionException { try { parse(expression); } catch (RSQLParserException ex) { throw new ExpressionException("Invalid expression: " + ex.getMessage()); } } RsqlEvaluatorFactory(CommsRouterEvaluatorFactory factory); }
RsqlEvaluatorFactory { public void validate(String expression) throws ExpressionException { try { parse(expression); } catch (RSQLParserException ex) { throw new ExpressionException("Invalid expression: " + ex.getMessage()); } } RsqlEvaluatorFactory(CommsRouterEvaluatorFactory factory); Node parse(String expression); v...
RsqlEvaluatorFactory { public void validate(String expression) throws ExpressionException { try { parse(expression); } catch (RSQLParserException ex) { throw new ExpressionException("Invalid expression: " + ex.getMessage()); } } RsqlEvaluatorFactory(CommsRouterEvaluatorFactory factory); Node parse(String expression); v...
@Test(expected = ExpressionException.class) public void validateExpressionInalid3() throws Exception { String predicateNOK3 = "language==in=(bg,fr,es)"; rsqlEvaluatorFactory.validate(predicateNOK3); }
public void validate(String expression) throws ExpressionException { try { parse(expression); } catch (RSQLParserException ex) { throw new ExpressionException("Invalid expression: " + ex.getMessage()); } }
RsqlEvaluatorFactory { public void validate(String expression) throws ExpressionException { try { parse(expression); } catch (RSQLParserException ex) { throw new ExpressionException("Invalid expression: " + ex.getMessage()); } } }
RsqlEvaluatorFactory { public void validate(String expression) throws ExpressionException { try { parse(expression); } catch (RSQLParserException ex) { throw new ExpressionException("Invalid expression: " + ex.getMessage()); } } RsqlEvaluatorFactory(CommsRouterEvaluatorFactory factory); }
RsqlEvaluatorFactory { public void validate(String expression) throws ExpressionException { try { parse(expression); } catch (RSQLParserException ex) { throw new ExpressionException("Invalid expression: " + ex.getMessage()); } } RsqlEvaluatorFactory(CommsRouterEvaluatorFactory factory); Node parse(String expression); v...
RsqlEvaluatorFactory { public void validate(String expression) throws ExpressionException { try { parse(expression); } catch (RSQLParserException ex) { throw new ExpressionException("Invalid expression: " + ex.getMessage()); } } RsqlEvaluatorFactory(CommsRouterEvaluatorFactory factory); Node parse(String expression); v...
@Test public void testAttributeGroupDtoOK() throws CommsRouterException { AttributeGroupDto attributeGroupDto = new AttributeGroupDto(); attributeGroupDto.add("isTechnical", true); attributeGroupDto.add("age", 5.0); attributeGroupDto.add("ageWithBoundary", 18.0); attributeGroupDto.add("multiAgeWithBoundary", 18.0); att...
public void validate(AttributeGroupDto capabilities, String routerRef) throws CommsRouterException { if (capabilities != null) { for (Map.Entry<String, AttributeValueDto> capability : capabilities.entrySet()) { validateCapability(capability.getKey(), capability.getValue(), routerRef); } } }
SkillValidator { public void validate(AttributeGroupDto capabilities, String routerRef) throws CommsRouterException { if (capabilities != null) { for (Map.Entry<String, AttributeValueDto> capability : capabilities.entrySet()) { validateCapability(capability.getKey(), capability.getValue(), routerRef); } } } }
SkillValidator { public void validate(AttributeGroupDto capabilities, String routerRef) throws CommsRouterException { if (capabilities != null) { for (Map.Entry<String, AttributeValueDto> capability : capabilities.entrySet()) { validateCapability(capability.getKey(), capability.getValue(), routerRef); } } } SkillValida...
SkillValidator { public void validate(AttributeGroupDto capabilities, String routerRef) throws CommsRouterException { if (capabilities != null) { for (Map.Entry<String, AttributeValueDto> capability : capabilities.entrySet()) { validateCapability(capability.getKey(), capability.getValue(), routerRef); } } } SkillValida...
SkillValidator { public void validate(AttributeGroupDto capabilities, String routerRef) throws CommsRouterException { if (capabilities != null) { for (Map.Entry<String, AttributeValueDto> capability : capabilities.entrySet()) { validateCapability(capability.getKey(), capability.getValue(), routerRef); } } } SkillValida...
@Test(expected = CommsRouterException.class) public void testDoubleUnderInterval() throws CommsRouterException { AttributeGroupDto attributeGroupDto = new AttributeGroupDto(); attributeGroupDto.add("ageWithBoundary", 5.0); skillValidator.validate(attributeGroupDto, routerRef); }
public void validate(AttributeGroupDto capabilities, String routerRef) throws CommsRouterException { if (capabilities != null) { for (Map.Entry<String, AttributeValueDto> capability : capabilities.entrySet()) { validateCapability(capability.getKey(), capability.getValue(), routerRef); } } }
SkillValidator { public void validate(AttributeGroupDto capabilities, String routerRef) throws CommsRouterException { if (capabilities != null) { for (Map.Entry<String, AttributeValueDto> capability : capabilities.entrySet()) { validateCapability(capability.getKey(), capability.getValue(), routerRef); } } } }
SkillValidator { public void validate(AttributeGroupDto capabilities, String routerRef) throws CommsRouterException { if (capabilities != null) { for (Map.Entry<String, AttributeValueDto> capability : capabilities.entrySet()) { validateCapability(capability.getKey(), capability.getValue(), routerRef); } } } SkillValida...
SkillValidator { public void validate(AttributeGroupDto capabilities, String routerRef) throws CommsRouterException { if (capabilities != null) { for (Map.Entry<String, AttributeValueDto> capability : capabilities.entrySet()) { validateCapability(capability.getKey(), capability.getValue(), routerRef); } } } SkillValida...
SkillValidator { public void validate(AttributeGroupDto capabilities, String routerRef) throws CommsRouterException { if (capabilities != null) { for (Map.Entry<String, AttributeValueDto> capability : capabilities.entrySet()) { validateCapability(capability.getKey(), capability.getValue(), routerRef); } } } SkillValida...
@Test public void testDoubleOnInclusiveBoundary() throws CommsRouterException { AttributeGroupDto attributeGroupDto = new AttributeGroupDto(); attributeGroupDto.add("ageWithBoundary", 18.0); skillValidator.validate(attributeGroupDto, routerRef); }
public void validate(AttributeGroupDto capabilities, String routerRef) throws CommsRouterException { if (capabilities != null) { for (Map.Entry<String, AttributeValueDto> capability : capabilities.entrySet()) { validateCapability(capability.getKey(), capability.getValue(), routerRef); } } }
SkillValidator { public void validate(AttributeGroupDto capabilities, String routerRef) throws CommsRouterException { if (capabilities != null) { for (Map.Entry<String, AttributeValueDto> capability : capabilities.entrySet()) { validateCapability(capability.getKey(), capability.getValue(), routerRef); } } } }
SkillValidator { public void validate(AttributeGroupDto capabilities, String routerRef) throws CommsRouterException { if (capabilities != null) { for (Map.Entry<String, AttributeValueDto> capability : capabilities.entrySet()) { validateCapability(capability.getKey(), capability.getValue(), routerRef); } } } SkillValida...
SkillValidator { public void validate(AttributeGroupDto capabilities, String routerRef) throws CommsRouterException { if (capabilities != null) { for (Map.Entry<String, AttributeValueDto> capability : capabilities.entrySet()) { validateCapability(capability.getKey(), capability.getValue(), routerRef); } } } SkillValida...
SkillValidator { public void validate(AttributeGroupDto capabilities, String routerRef) throws CommsRouterException { if (capabilities != null) { for (Map.Entry<String, AttributeValueDto> capability : capabilities.entrySet()) { validateCapability(capability.getKey(), capability.getValue(), routerRef); } } } SkillValida...
@Test(expected = BadValueException.class) public void testValidateHighLessThanLow() throws Exception { NumberInterval instance = new NumberInterval( new NumberIntervalBoundary(10.0), new NumberIntervalBoundary(0.0) ); instance.validate(); }
public void validate() throws BadValueException { if (low == null) { throw new BadValueException("NumberInterval.low is required"); } if (high == null) { throw new BadValueException("NumberInterval.high is required"); } low.validate(); high.validate(); int compareLowHigh = low.compareBoundaryTo(high); if (compareLowHig...
NumberInterval { public void validate() throws BadValueException { if (low == null) { throw new BadValueException("NumberInterval.low is required"); } if (high == null) { throw new BadValueException("NumberInterval.high is required"); } low.validate(); high.validate(); int compareLowHigh = low.compareBoundaryTo(high); ...
NumberInterval { public void validate() throws BadValueException { if (low == null) { throw new BadValueException("NumberInterval.low is required"); } if (high == null) { throw new BadValueException("NumberInterval.high is required"); } low.validate(); high.validate(); int compareLowHigh = low.compareBoundaryTo(high); ...
NumberInterval { public void validate() throws BadValueException { if (low == null) { throw new BadValueException("NumberInterval.low is required"); } if (high == null) { throw new BadValueException("NumberInterval.high is required"); } low.validate(); high.validate(); int compareLowHigh = low.compareBoundaryTo(high); ...
NumberInterval { public void validate() throws BadValueException { if (low == null) { throw new BadValueException("NumberInterval.low is required"); } if (high == null) { throw new BadValueException("NumberInterval.high is required"); } low.validate(); high.validate(); int compareLowHigh = low.compareBoundaryTo(high); ...
@Test(expected = CommsRouterException.class) public void testDoubleOnExclusiveBoundary() throws CommsRouterException { AttributeGroupDto attributeGroupDto = new AttributeGroupDto(); attributeGroupDto.add("ageWithBoundary", 45.0); skillValidator.validate(attributeGroupDto, routerRef); }
public void validate(AttributeGroupDto capabilities, String routerRef) throws CommsRouterException { if (capabilities != null) { for (Map.Entry<String, AttributeValueDto> capability : capabilities.entrySet()) { validateCapability(capability.getKey(), capability.getValue(), routerRef); } } }
SkillValidator { public void validate(AttributeGroupDto capabilities, String routerRef) throws CommsRouterException { if (capabilities != null) { for (Map.Entry<String, AttributeValueDto> capability : capabilities.entrySet()) { validateCapability(capability.getKey(), capability.getValue(), routerRef); } } } }
SkillValidator { public void validate(AttributeGroupDto capabilities, String routerRef) throws CommsRouterException { if (capabilities != null) { for (Map.Entry<String, AttributeValueDto> capability : capabilities.entrySet()) { validateCapability(capability.getKey(), capability.getValue(), routerRef); } } } SkillValida...
SkillValidator { public void validate(AttributeGroupDto capabilities, String routerRef) throws CommsRouterException { if (capabilities != null) { for (Map.Entry<String, AttributeValueDto> capability : capabilities.entrySet()) { validateCapability(capability.getKey(), capability.getValue(), routerRef); } } } SkillValida...
SkillValidator { public void validate(AttributeGroupDto capabilities, String routerRef) throws CommsRouterException { if (capabilities != null) { for (Map.Entry<String, AttributeValueDto> capability : capabilities.entrySet()) { validateCapability(capability.getKey(), capability.getValue(), routerRef); } } } SkillValida...
@Test(expected = CommsRouterException.class) public void testDoubleAboveInterval() throws CommsRouterException { AttributeGroupDto attributeGroupDto = new AttributeGroupDto(); attributeGroupDto.add("ageWithBoundary", 46.0); skillValidator.validate(attributeGroupDto, routerRef); }
public void validate(AttributeGroupDto capabilities, String routerRef) throws CommsRouterException { if (capabilities != null) { for (Map.Entry<String, AttributeValueDto> capability : capabilities.entrySet()) { validateCapability(capability.getKey(), capability.getValue(), routerRef); } } }
SkillValidator { public void validate(AttributeGroupDto capabilities, String routerRef) throws CommsRouterException { if (capabilities != null) { for (Map.Entry<String, AttributeValueDto> capability : capabilities.entrySet()) { validateCapability(capability.getKey(), capability.getValue(), routerRef); } } } }
SkillValidator { public void validate(AttributeGroupDto capabilities, String routerRef) throws CommsRouterException { if (capabilities != null) { for (Map.Entry<String, AttributeValueDto> capability : capabilities.entrySet()) { validateCapability(capability.getKey(), capability.getValue(), routerRef); } } } SkillValida...
SkillValidator { public void validate(AttributeGroupDto capabilities, String routerRef) throws CommsRouterException { if (capabilities != null) { for (Map.Entry<String, AttributeValueDto> capability : capabilities.entrySet()) { validateCapability(capability.getKey(), capability.getValue(), routerRef); } } } SkillValida...
SkillValidator { public void validate(AttributeGroupDto capabilities, String routerRef) throws CommsRouterException { if (capabilities != null) { for (Map.Entry<String, AttributeValueDto> capability : capabilities.entrySet()) { validateCapability(capability.getKey(), capability.getValue(), routerRef); } } } SkillValida...
@Test public void testDoubleInSecondInterval() throws CommsRouterException { AttributeGroupDto attributeGroupDto = new AttributeGroupDto(); attributeGroupDto.add("ageWithBoundary", 55.0); skillValidator.validate(attributeGroupDto, routerRef); }
public void validate(AttributeGroupDto capabilities, String routerRef) throws CommsRouterException { if (capabilities != null) { for (Map.Entry<String, AttributeValueDto> capability : capabilities.entrySet()) { validateCapability(capability.getKey(), capability.getValue(), routerRef); } } }
SkillValidator { public void validate(AttributeGroupDto capabilities, String routerRef) throws CommsRouterException { if (capabilities != null) { for (Map.Entry<String, AttributeValueDto> capability : capabilities.entrySet()) { validateCapability(capability.getKey(), capability.getValue(), routerRef); } } } }
SkillValidator { public void validate(AttributeGroupDto capabilities, String routerRef) throws CommsRouterException { if (capabilities != null) { for (Map.Entry<String, AttributeValueDto> capability : capabilities.entrySet()) { validateCapability(capability.getKey(), capability.getValue(), routerRef); } } } SkillValida...
SkillValidator { public void validate(AttributeGroupDto capabilities, String routerRef) throws CommsRouterException { if (capabilities != null) { for (Map.Entry<String, AttributeValueDto> capability : capabilities.entrySet()) { validateCapability(capability.getKey(), capability.getValue(), routerRef); } } } SkillValida...
SkillValidator { public void validate(AttributeGroupDto capabilities, String routerRef) throws CommsRouterException { if (capabilities != null) { for (Map.Entry<String, AttributeValueDto> capability : capabilities.entrySet()) { validateCapability(capability.getKey(), capability.getValue(), routerRef); } } } SkillValida...
@Test(expected = CommsRouterException.class) public void testSkillDoesNotExist() throws CommsRouterException { AttributeGroupDto attributeGroupDto = new AttributeGroupDto(); attributeGroupDto.add("babaiaga", true); skillValidator.validate(attributeGroupDto, routerRef); }
public void validate(AttributeGroupDto capabilities, String routerRef) throws CommsRouterException { if (capabilities != null) { for (Map.Entry<String, AttributeValueDto> capability : capabilities.entrySet()) { validateCapability(capability.getKey(), capability.getValue(), routerRef); } } }
SkillValidator { public void validate(AttributeGroupDto capabilities, String routerRef) throws CommsRouterException { if (capabilities != null) { for (Map.Entry<String, AttributeValueDto> capability : capabilities.entrySet()) { validateCapability(capability.getKey(), capability.getValue(), routerRef); } } } }
SkillValidator { public void validate(AttributeGroupDto capabilities, String routerRef) throws CommsRouterException { if (capabilities != null) { for (Map.Entry<String, AttributeValueDto> capability : capabilities.entrySet()) { validateCapability(capability.getKey(), capability.getValue(), routerRef); } } } SkillValida...
SkillValidator { public void validate(AttributeGroupDto capabilities, String routerRef) throws CommsRouterException { if (capabilities != null) { for (Map.Entry<String, AttributeValueDto> capability : capabilities.entrySet()) { validateCapability(capability.getKey(), capability.getValue(), routerRef); } } } SkillValida...
SkillValidator { public void validate(AttributeGroupDto capabilities, String routerRef) throws CommsRouterException { if (capabilities != null) { for (Map.Entry<String, AttributeValueDto> capability : capabilities.entrySet()) { validateCapability(capability.getKey(), capability.getValue(), routerRef); } } } SkillValida...