All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.arextest.storage.mock.MockResultProvider Maven / Gradle / Ivy

There is a newer version: 2.0.2
Show newest version
package com.arextest.storage.mock;

import com.arextest.model.mock.MockCategoryType;
import com.arextest.model.mock.Mocker;
import java.util.List;
import javax.validation.constraints.NotNull;

/**
 * @author jmo
 * @since 2021/11/9
 */
public interface MockResultProvider {

   boolean putRecordResult(MockCategoryType categoryType, String recordId,
      Iterable values);

   boolean putReplayResult(T value);

  byte[] getRecordResult(@NotNull Mocker mockItem, MockResultContext context);

  List getRecordResultList(MockCategoryType category, String recordId);

  List getReplayResultList(MockCategoryType category, String replayId);

  int replayResultCount(MockCategoryType category, String replayResultId);

  int recordResultCount(MockCategoryType category, String recordId);

   boolean removeRecordResult(MockCategoryType category, String recordId,
      Iterable values);

  /**
   * Calculate the eigen values of the request body.
   */
  void calculateEigen(@NotNull Mocker item, boolean queryConfig);
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy