-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
19 changed files
with
554 additions
and
490 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,6 @@ | ||
HELP.md | ||
target/ | ||
logs/ | ||
!.mvn/wrapper/maven-wrapper.jar | ||
!**/src/main/**/target/ | ||
!**/src/test/**/target/ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
50 changes: 25 additions & 25 deletions
50
.../tourGuide/helper/InternalTestHelper.java → .../tourGuide/config/InternalTestHelper.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,25 +1,25 @@ | ||
package tourGuide.helper; | ||
|
||
/** Users testing initializer. | ||
*/ | ||
public class InternalTestHelper { | ||
|
||
// Set this default up to 100,000 for testing | ||
private static int internalUserNumber = 100; | ||
|
||
/** Setting the amount of users to test. | ||
* @param internalUserNumber Integer containing the amount of users. | ||
*/ | ||
public static void setInternalUserNumber(int internalUserNumber) { | ||
|
||
InternalTestHelper.internalUserNumber = internalUserNumber; | ||
} | ||
|
||
/** Getting the amount of users to test. | ||
* @return Return the amount of users. | ||
*/ | ||
public static int getInternalUserNumber() { | ||
|
||
return internalUserNumber; | ||
} | ||
} | ||
package tourGuide.config; | ||
|
||
/** Users testing initializer. | ||
*/ | ||
public class InternalTestHelper { | ||
|
||
// Set this default up to 100,000 for testing | ||
private static int internalUserNumber = 100; | ||
|
||
/** Setting the amount of users to test. | ||
* @param internalUserNumber Integer containing the amount of users. | ||
*/ | ||
public static void setInternalUserNumber(int internalUserNumber) { | ||
|
||
InternalTestHelper.internalUserNumber = internalUserNumber; | ||
} | ||
|
||
/** Getting the amount of users to test. | ||
* @return Return the amount of users. | ||
*/ | ||
public static int getInternalUserNumber() { | ||
|
||
return internalUserNumber; | ||
} | ||
} |
66 changes: 33 additions & 33 deletions
66
.../main/java/tourGuide/TourGuideModule.java → ...ava/tourGuide/config/TourGuideModule.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,33 +1,33 @@ | ||
package tourGuide; | ||
|
||
import org.springframework.context.annotation.Bean; | ||
import org.springframework.context.annotation.Configuration; | ||
|
||
import gpsUtil.GpsUtil; | ||
import rewardCentral.RewardCentral; | ||
import tourGuide.service.RewardsService; | ||
|
||
/** TourGuide modules configurer. | ||
*/ | ||
@Configuration | ||
public class TourGuideModule { | ||
|
||
@Bean | ||
public GpsUtil getGpsUtil() { | ||
|
||
return new GpsUtil(); | ||
} | ||
|
||
@Bean | ||
public RewardsService getRewardsService() { | ||
|
||
return new RewardsService(getGpsUtil(), getRewardCentral()); | ||
} | ||
|
||
@Bean | ||
public RewardCentral getRewardCentral() { | ||
|
||
return new RewardCentral(); | ||
} | ||
|
||
} | ||
package tourGuide.config; | ||
|
||
import org.springframework.context.annotation.Bean; | ||
import org.springframework.context.annotation.Configuration; | ||
|
||
import gpsUtil.GpsUtil; | ||
import rewardCentral.RewardCentral; | ||
import tourGuide.service.RewardsService; | ||
|
||
/** TourGuide modules configurer. | ||
*/ | ||
@Configuration | ||
public class TourGuideModule { | ||
|
||
@Bean | ||
public GpsUtil getGpsUtil() { | ||
|
||
return new GpsUtil(); | ||
} | ||
|
||
@Bean | ||
public RewardsService getRewardsService() { | ||
|
||
return new RewardsService(getGpsUtil(), getRewardCentral()); | ||
} | ||
|
||
@Bean | ||
public RewardCentral getRewardCentral() { | ||
|
||
return new RewardCentral(); | ||
} | ||
|
||
} |
Oops, something went wrong.