@Category(FlakyTest.class) @Test public void testPut_ValidateDataOnMember_PrimarySecondary_Datastore(){
  member1.invoke(null);
  FixedPartitionAttributes fpa1=FixedPartitionAttributes.createFixedPartition(Quarter1,true,3);
  FixedPartitionAttributes fpa2=FixedPartitionAttributes.createFixedPartition(Quarter2,false,3);
  List<FixedPartitionAttributes> fpaList=new ArrayList<FixedPartitionAttributes>();
  fpaList.add(fpa1);
  fpaList.add(fpa2);
  member1.invoke(null);
  member2.invoke(null);
  fpa1=FixedPartitionAttributes.createFixedPartition(Quarter2,true,3);
  fpa2=FixedPartitionAttributes.createFixedPartition(Quarter3,false,3);
  fpaList.clear();
  fpaList.add(fpa1);
  fpaList.add(fpa2);
  member2.invoke(null);
  member3.invoke(null);
  fpa1=FixedPartitionAttributes.createFixedPartition(Quarter3,true,3);
  fpa2=FixedPartitionAttributes.createFixedPartition(Quarter4,false,3);
  fpaList.clear();
  fpaList.add(fpa1);
  fpaList.add(fpa2);
  member3.invoke(null);
  member4.invoke(null);
  fpa1=FixedPartitionAttributes.createFixedPartition(Quarter4,true,3);
  fpa2=FixedPartitionAttributes.createFixedPartition(Quarter1,false,3);
  fpaList.clear();
  fpaList.add(fpa1);
  fpaList.add(fpa2);
  member4.invoke(null);
  member1.invoke(null);
  member1.invoke(null);
  member2.invoke(null);
  member3.invoke(null);
  member4.invoke(null);
  member1.invoke(null);
  member2.invoke(null);
  member3.invoke(null);
  member4.invoke(null);
}

@ Category ( FlakyTest . class ) @ Test public void testPut_ValidateDataOnMember_PrimarySecondary_Datastore ( ) { member1 . invoke ( null ) ; FixedPartitionAttributes fpa1 = FixedPartitionAttributes . createFixedPartition ( Quarter1 , true , 3 ) ; FixedPartitionAttributes fpa2 = FixedPartitionAttributes . createFixedPartition ( Quarter2 , false , 3 ) ; List < FixedPartitionAttributes > fpaList = new ArrayList < FixedPartitionAttributes > ( ) ; fpaList . add ( fpa1 ) ; fpaList . add ( fpa2 ) ; member1 . invoke ( null ) ; member2 . invoke ( null ) ; fpa1 = FixedPartitionAttributes . createFixedPartition ( Quarter2 , true , 3 ) ; fpa2 = FixedPartitionAttributes . createFixedPartition ( Quarter3 , false , 3 ) ; fpaList . clear ( ) ; fpaList . add ( fpa1 ) ; fpaList . add ( fpa2 ) ; member2 . invoke ( null ) ; member3 . invoke ( null ) ; fpa1 = FixedPartitionAttributes . createFixedPartition ( Quarter3 , true , 3 ) ; fpa2 = FixedPartitionAttributes . createFixedPartition ( Quarter4 , false , 3 ) ; fpaList . clear ( ) ; fpaList . add ( fpa1 ) ; fpaList . add ( fpa2 ) ; member3 . invoke ( null ) ; member4 . invoke ( null ) ; fpa1 = FixedPartitionAttributes . createFixedPartition ( Quarter4 , true , 3 ) ; fpa2 = FixedPartitionAttributes . createFixedPartition ( Quarter1 , false , 3 ) ; fpaList . clear ( ) ; fpaList . add ( fpa1 ) ; fpaList . add ( fpa2 ) ; member4 . invoke ( null ) ; member1 . invoke ( null ) ; member1 . invoke ( null ) ; member2 . invoke ( null ) ; member3 . invoke ( null ) ; member4 . invoke ( null ) ; member1 . invoke ( null ) ; member2 . invoke ( null ) ; member3 . invoke ( null ) ; member4 . invoke ( null ) ; }
this tests validate that datastore member does the put on itself as well as other datastores as per primary and secondary fixedpartitionattributes defined on datastores .
