Permalink
Browse files

Reverting the revert commit, since it clearly did not revert as inten…

…ded.
  • Loading branch information...
Mikkeren committed Oct 26, 2015
1 parent 6ee55f0 commit 6f865ccdea3b63c10de92ca232686bb86cfb8d47
Showing with 530 additions and 2,441 deletions.
  1. +2 −0 .travis.yml
  2. +15 −0 CONTRIBUTING.md
  3. +9 −1 README.md
  4. +23 −10 pom.xml
  5. +22 −0 ...com/seriouscompany/business/java/fizzbuzz/packagenamingpackage/impl/ApplicationContextHolder.java
  6. +4 −8 src/main/java/com/seriouscompany/business/java/fizzbuzz/packagenamingpackage/impl/Main.java
  7. +9 −5 ...in/java/com/seriouscompany/business/java/fizzbuzz/packagenamingpackage/impl/StandardFizzBuzz.java
  8. +8 −4 ...eriouscompany/business/java/fizzbuzz/packagenamingpackage/impl/factories/BuzzStrategyFactory.java
  9. +7 −3 ...scompany/business/java/fizzbuzz/packagenamingpackage/impl/factories/BuzzStringPrinterFactory.java
  10. +7 −3 ...company/business/java/fizzbuzz/packagenamingpackage/impl/factories/BuzzStringReturnerFactory.java
  11. +7 −3 .../fizzbuzz/packagenamingpackage/impl/factories/EnterpriseGradeFizzBuzzSolutionStrategyFactory.java
  12. +8 −3 ...a/fizzbuzz/packagenamingpackage/impl/factories/FizzBuzzOutputGenerationContextVisitorFactory.java
  13. +9 −5 ...eriouscompany/business/java/fizzbuzz/packagenamingpackage/impl/factories/FizzStrategyFactory.java
  14. +7 −3 ...scompany/business/java/fizzbuzz/packagenamingpackage/impl/factories/FizzStringPrinterFactory.java
  15. +7 −3 ...company/business/java/fizzbuzz/packagenamingpackage/impl/factories/FizzStringReturnerFactory.java
  16. +7 −3 ...pany/business/java/fizzbuzz/packagenamingpackage/impl/factories/IntegerIntegerPrinterFactory.java
  17. +7 −3 ...siness/java/fizzbuzz/packagenamingpackage/impl/factories/IntegerIntegerStringReturnerFactory.java
  18. +20 −16 ...riouscompany/business/java/fizzbuzz/packagenamingpackage/impl/factories/LoopComponentFactory.java
  19. +7 −3 ...mpany/business/java/fizzbuzz/packagenamingpackage/impl/factories/NewLineStringPrinterFactory.java
  20. +7 −3 ...pany/business/java/fizzbuzz/packagenamingpackage/impl/factories/NewLineStringReturnerFactory.java
  21. +7 −4 ...mpany/business/java/fizzbuzz/packagenamingpackage/impl/factories/NoFizzNoBuzzStrategyFactory.java
  22. +8 −4 ...ess/java/fizzbuzz/packagenamingpackage/impl/factories/SystemOutFizzBuzzOutputStrategyFactory.java
  23. +4 −2 .../java/com/seriouscompany/business/java/fizzbuzz/packagenamingpackage/impl/loop/LoopCondition.java
  24. +23 −22 ...in/java/com/seriouscompany/business/java/fizzbuzz/packagenamingpackage/impl/loop/LoopContext.java
  25. +4 −5 .../java/com/seriouscompany/business/java/fizzbuzz/packagenamingpackage/impl/loop/LoopFinalizer.java
  26. +9 −8 ...ain/java/com/seriouscompany/business/java/fizzbuzz/packagenamingpackage/impl/loop/LoopRunner.java
  27. +2 −2 src/main/java/com/seriouscompany/business/java/fizzbuzz/packagenamingpackage/impl/loop/LoopStep.java
  28. +22 −9 ...iouscompany/business/java/fizzbuzz/packagenamingpackage/impl/math/arithmetics/IntegerDivider.java
  29. +19 −6 .../fizzbuzz/packagenamingpackage/impl/math/arithmetics/NumberIsMultipleOfAnotherNumberVerifier.java
  30. +14 −7 ...siness/java/fizzbuzz/packagenamingpackage/impl/parameters/DefaultFizzBuzzUpperLimitParameter.java
  31. +7 −2 ...ava/com/seriouscompany/business/java/fizzbuzz/packagenamingpackage/impl/printers/BuzzPrinter.java
  32. +15 −9 ...m/seriouscompany/business/java/fizzbuzz/packagenamingpackage/impl/printers/BuzzStringPrinter.java
  33. +7 −2 ...ava/com/seriouscompany/business/java/fizzbuzz/packagenamingpackage/impl/printers/FizzPrinter.java
  34. +16 −10 ...m/seriouscompany/business/java/fizzbuzz/packagenamingpackage/impl/printers/FizzStringPrinter.java
  35. +18 −11 ...riouscompany/business/java/fizzbuzz/packagenamingpackage/impl/printers/IntegerIntegerPrinter.java
  36. +9 −4 .../com/seriouscompany/business/java/fizzbuzz/packagenamingpackage/impl/printers/IntegerPrinter.java
  37. +10 −5 .../com/seriouscompany/business/java/fizzbuzz/packagenamingpackage/impl/printers/NewLinePrinter.java
  38. +15 −9 ...eriouscompany/business/java/fizzbuzz/packagenamingpackage/impl/printers/NewLineStringPrinter.java
  39. +4 −2 .../com/seriouscompany/business/java/fizzbuzz/packagenamingpackage/impl/strategies/BuzzStrategy.java
  40. +8 −4 ...s/java/fizzbuzz/packagenamingpackage/impl/strategies/EnterpriseGradeFizzBuzzSolutionStrategy.java
  41. +4 −2 .../com/seriouscompany/business/java/fizzbuzz/packagenamingpackage/impl/strategies/FizzStrategy.java
  42. +10 −6 ...iouscompany/business/java/fizzbuzz/packagenamingpackage/impl/strategies/NoFizzNoBuzzStrategy.java
  43. +31 −25 ...siness/java/fizzbuzz/packagenamingpackage/impl/strategies/SingleStepOutputGenerationStrategy.java
  44. +8 −4 ...seriouscompany/business/java/fizzbuzz/packagenamingpackage/impl/strategies/SingleStepPayload.java
  45. +1 −1 .../business/java/fizzbuzz/packagenamingpackage/impl/strategies/SystemOutFizzBuzzOutputStrategy.java
  46. +7 −5 .../impl/strategies/adapters/FizzBuzzOutputStrategyToFizzBuzzExceptionSafeOutputStrategyAdapter.java
  47. +3 −3 ...ackage/impl/strategies/adapters/LoopContextStateRetrievalToSingleStepOutputGenerationAdapter.java
  48. +1 −1 ...package/impl/strategies/comparators/doublecomparator/FirstIsLargerThanSecondDoubleComparator.java
  49. +1 −1 ...ackage/impl/strategies/comparators/doublecomparator/FirstIsSmallerThanSecondDoubleComparator.java
  50. +4 −3 ...kagenamingpackage/impl/strategies/comparators/integercomparator/IntegerForEqualityComparator.java
  51. +2 −1 ...packagenamingpackage/impl/strategies/comparators/integercomparator/ThreeWayIntegerComparator.java
  52. +2 −2 ...ackagenamingpackage/impl/strategies/converters/primitivetypesconverters/DoubleToIntConverter.java
  53. +3 −2 ...ackagenamingpackage/impl/strategies/converters/primitivetypesconverters/IntToDoubleConverter.java
  54. +1 −1 ...usiness/java/fizzbuzz/packagenamingpackage/impl/stringreturners/IntegerIntegerStringReturner.java
  55. +7 −7 ...ny/business/java/fizzbuzz/packagenamingpackage/impl/visitors/FizzBuzzOutputGenerationContext.java
  56. +7 −3 ...ness/java/fizzbuzz/packagenamingpackage/impl/visitors/FizzBuzzOutputGenerationContextVisitor.java
  57. +25 −24 src/test/java/FizzBuzzTest.java
  58. +0 −25 src/test/java/com/seriouscompany/business/java/fizzbuzz/packagenamingpackage/impl/TestMain.java
  59. +0 −53 ...ava/com/seriouscompany/business/java/fizzbuzz/packagenamingpackage/impl/TestStandardFizzBuzz.java
  60. +0 −22 ...uscompany/business/java/fizzbuzz/packagenamingpackage/impl/factories/TestBuzzStrategyFactory.java
  61. +0 −22 ...pany/business/java/fizzbuzz/packagenamingpackage/impl/factories/TestBuzzStringPrinterFactory.java
  62. +0 −47 ...any/business/java/fizzbuzz/packagenamingpackage/impl/factories/TestBuzzStringReturnerFactory.java
  63. +0 −47 ...zbuzz/packagenamingpackage/impl/factories/TestEnterpriseGradeFizzBuzzSolutionStrategyFactory.java
  64. +0 −22 ...zzbuzz/packagenamingpackage/impl/factories/TestFizzBuzzOutputGenerationContextVisitorFactory.java
  65. +0 −22 ...uscompany/business/java/fizzbuzz/packagenamingpackage/impl/factories/TestFizzStrategyFactory.java
  66. +0 −22 ...pany/business/java/fizzbuzz/packagenamingpackage/impl/factories/TestFizzStringPrinterFactory.java
  67. +0 −47 ...any/business/java/fizzbuzz/packagenamingpackage/impl/factories/TestFizzStringReturnerFactory.java
  68. +0 −22 .../business/java/fizzbuzz/packagenamingpackage/impl/factories/TestIntegerIntegerPrinterFactory.java
  69. +0 −47 ...ss/java/fizzbuzz/packagenamingpackage/impl/factories/TestIntegerIntegerStringReturnerFactory.java
  70. +0 −35 ...scompany/business/java/fizzbuzz/packagenamingpackage/impl/factories/TestLoopComponentFactory.java
  71. +0 −22 ...y/business/java/fizzbuzz/packagenamingpackage/impl/factories/TestNewLineStringPrinterFactory.java
  72. +0 −47 .../business/java/fizzbuzz/packagenamingpackage/impl/factories/TestNewLineStringReturnerFactory.java
  73. +0 −32 ...y/business/java/fizzbuzz/packagenamingpackage/impl/factories/TestNoFizzNoBuzzStrategyFactory.java
  74. +0 −22 ...java/fizzbuzz/packagenamingpackage/impl/factories/TestSystemOutFizzBuzzOutputStrategyFactory.java
  75. +0 −22 ...a/com/seriouscompany/business/java/fizzbuzz/packagenamingpackage/impl/loop/TestLoopCondition.java
  76. +0 −142 ...ava/com/seriouscompany/business/java/fizzbuzz/packagenamingpackage/impl/loop/TestLoopContext.java
  77. +0 −57 ...a/com/seriouscompany/business/java/fizzbuzz/packagenamingpackage/impl/loop/TestLoopFinalizer.java
  78. +0 −36 ...com/seriouscompany/business/java/fizzbuzz/packagenamingpackage/impl/loop/TestLoopInitializer.java
  79. +0 −49 ...java/com/seriouscompany/business/java/fizzbuzz/packagenamingpackage/impl/loop/TestLoopRunner.java
  80. +0 −39 ...t/java/com/seriouscompany/business/java/fizzbuzz/packagenamingpackage/impl/loop/TestLoopStep.java
  81. +0 −22 ...company/business/java/fizzbuzz/packagenamingpackage/impl/math/arithmetics/TestIntegerDivider.java
  82. +0 −22 ...zbuzz/packagenamingpackage/impl/math/arithmetics/TestNumberIsMultipleOfAnotherNumberVerifier.java
  83. +0 −46 ...ss/java/fizzbuzz/packagenamingpackage/impl/parameters/TestDefaultFizzBuzzUpperLimitParameter.java
  84. +0 −22 ...com/seriouscompany/business/java/fizzbuzz/packagenamingpackage/impl/printers/TestBuzzPrinter.java
  85. +0 −22 ...riouscompany/business/java/fizzbuzz/packagenamingpackage/impl/printers/TestBuzzStringPrinter.java
  86. +0 −22 ...com/seriouscompany/business/java/fizzbuzz/packagenamingpackage/impl/printers/TestFizzPrinter.java
  87. +0 −60 ...riouscompany/business/java/fizzbuzz/packagenamingpackage/impl/printers/TestFizzStringPrinter.java
  88. +0 −65 ...scompany/business/java/fizzbuzz/packagenamingpackage/impl/printers/TestIntegerIntegerPrinter.java
  89. +0 −22 .../seriouscompany/business/java/fizzbuzz/packagenamingpackage/impl/printers/TestIntegerPrinter.java
  90. +0 −22 .../seriouscompany/business/java/fizzbuzz/packagenamingpackage/impl/printers/TestNewLinePrinter.java
  91. +0 −61 ...uscompany/business/java/fizzbuzz/packagenamingpackage/impl/printers/TestNewLineStringPrinter.java
  92. +0 −39 .../seriouscompany/business/java/fizzbuzz/packagenamingpackage/impl/strategies/TestBuzzStrategy.java
  93. +0 −22 ...va/fizzbuzz/packagenamingpackage/impl/strategies/TestEnterpriseGradeFizzBuzzSolutionStrategy.java
  94. +0 −39 .../seriouscompany/business/java/fizzbuzz/packagenamingpackage/impl/strategies/TestFizzStrategy.java
  95. +0 −39 ...company/business/java/fizzbuzz/packagenamingpackage/impl/strategies/TestNoFizzNoBuzzStrategy.java
  96. +0 −82 ...ss/java/fizzbuzz/packagenamingpackage/impl/strategies/TestSingleStepOutputGenerationStrategy.java
  97. +0 −51 ...ouscompany/business/java/fizzbuzz/packagenamingpackage/impl/strategies/TestSingleStepPayload.java
  98. +0 −37 ...iness/java/fizzbuzz/packagenamingpackage/impl/strategies/TestSystemOutFizzBuzzOutputStrategy.java
  99. +0 −56 ...l/strategies/adapters/TestFizzBuzzOutputStrategyToFizzBuzzExceptionSafeOutputStrategyAdapter.java
  100. +0 −28 ...ge/impl/strategies/adapters/TestLoopContextStateRetrievalToSingleStepOutputGenerationAdapter.java
  101. +0 −22 ...age/impl/strategies/comparators/doublecomparator/TestFirstIsLargerThanSecondDoubleComparator.java
  102. +0 −22 ...ge/impl/strategies/comparators/doublecomparator/TestFirstIsSmallerThanSecondDoubleComparator.java
  103. +0 −22 ...namingpackage/impl/strategies/comparators/integercomparator/TestIntegerForEqualityComparator.java
  104. +0 −22 ...agenamingpackage/impl/strategies/comparators/integercomparator/TestThreeWayIntegerComparator.java
  105. +0 −22 ...iness/java/fizzbuzz/packagenamingpackage/impl/strategies/constants/TestBuzzStrategyConstants.java
  106. +0 −22 ...iness/java/fizzbuzz/packagenamingpackage/impl/strategies/constants/TestFizzStrategyConstants.java
  107. +0 −22 ...va/fizzbuzz/packagenamingpackage/impl/strategies/constants/TestNoFizzNoBuzzStrategyConstants.java
  108. +0 −38 ...genamingpackage/impl/strategies/converters/primitivetypesconverters/TestDoubleToIntConverter.java
  109. +0 −38 ...genamingpackage/impl/strategies/converters/primitivetypesconverters/TestIntToDoubleConverter.java
  110. +0 −36 ...pany/business/java/fizzbuzz/packagenamingpackage/impl/stringreturners/TestBuzzStringReturner.java
  111. +0 −36 ...pany/business/java/fizzbuzz/packagenamingpackage/impl/stringreturners/TestFizzStringReturner.java
  112. +0 −39 ...ess/java/fizzbuzz/packagenamingpackage/impl/stringreturners/TestIntegerIntegerStringReturner.java
  113. +0 −35 ...y/business/java/fizzbuzz/packagenamingpackage/impl/stringreturners/TestNewLineStringReturner.java
  114. +0 −66 ...usiness/java/fizzbuzz/packagenamingpackage/impl/visitors/TestFizzBuzzOutputGenerationContext.java
  115. +0 −22 .../java/fizzbuzz/packagenamingpackage/impl/visitors/TestFizzBuzzOutputGenerationContextVisitor.java
View
@@ -1,4 +1,6 @@
language: java
before_install: sudo pip install codecov
after_success: codecov
jdk:
- oraclejdk7
View
@@ -0,0 +1,15 @@
# Contributor Code of Conduct
As contributors and maintainers of this project, we pledge to respect all people who contribute through reporting issues, posting feature requests, updating documentation, submitting pull requests or patches, and other activities.
We are committed to making participation in this project a harassment-free experience for everyone, regardless of level of experience, gender, gender identity and expression, sexual orientation, disability, personal appearance, body size, race, ethnicity, age, or religion.
Examples of unacceptable behavior by participants include the use of sexual language or imagery, derogatory comments or personal attacks, trolling, public or private harassment, insults, or other unprofessional conduct.
Project maintainers have the right and responsibility to remove, edit, or reject comments, commits, code, wiki edits, issues, and other contributions that are not aligned to this Code of Conduct. Project maintainers who do not follow the Code of Conduct may be removed from the project team.
This code of conduct applies both within project spaces and in public spaces when an individual is representing the project or its community.
Instances of abusive, harassing, or otherwise unacceptable behavior may be reported by opening an issue or contacting one or more of the project maintainers.
This Code of Conduct is adapted from the [Contributor Covenant](http://contributor-covenant.org), version 1.1.0, available at [http://contributor-covenant.org/version/1/1/0/](http://contributor-covenant.org/version/1/1/0/)
View
@@ -1,5 +1,6 @@
# FizzBuzzEnterpriseEdition
[![Build status][Build status image]][Build status URL]
[![Build status][Build status image]][Build status URL] [![codecov.io](https://codecov.io/github/EnterpriseQualityCoding/FizzBuzzEnterpriseEdition/coverage.svg?branch=master)](https://codecov.io/github/EnterpriseQualityCoding/FizzBuzzEnterpriseEdition?branch=master)
[Build status image]: https://secure.travis-ci.org/EnterpriseQualityCoding/FizzBuzzEnterpriseEdition.png?branch=master
[Build status URL]: http://travis-ci.org/EnterpriseQualityCoding/FizzBuzzEnterpriseEdition
@@ -24,3 +25,10 @@ For numbers 1 through 100,
* if the number is divisible by 5 print Buzz;
* if the number is divisible by 3 and 5 (15) print FizzBuzz;
* else, print the number.
## Contributing
Although this project is intended as satire, we take openness and inclusivity
very seriously. To that end we have adopted the following code of conduct.
[Contributor Code of Conduct](CONTRIBUTING.md)
View
33 pom.xml
@@ -16,16 +16,10 @@
<dependencies>
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>4.12</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.mockito</groupId>
<artifactId>mockito-core</artifactId>
<version>1.10.17</version>
<scope>test</scope>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>4.8.2</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.springframework</groupId>
@@ -82,6 +76,25 @@
</archive>
</configuration>
</plugin>
<plugin>
<groupId>org.jacoco</groupId>
<artifactId>jacoco-maven-plugin</artifactId>
<version>0.5.8.201207111220</version>
<executions>
<execution>
<goals>
<goal>prepare-agent</goal>
</goals>
</execution>
<execution>
<id>report</id>
<phase>test</phase>
<goals>
<goal>report</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
@@ -0,0 +1,22 @@
package com.seriouscompany.business.java.fizzbuzz.packagenamingpackage.impl;
import org.springframework.beans.BeansException;
import org.springframework.context.*;
import org.springframework.stereotype.Service;
@Service
public class ApplicationContextHolder implements ApplicationContextAware {
private static ApplicationContext applicationContext;
private ApplicationContextHolder() {
}
public void setApplicationContext(final ApplicationContext applicationContext) throws BeansException {
ApplicationContextHolder.applicationContext = applicationContext;
}
public static ApplicationContext getApplicationContext() {
return ApplicationContextHolder.applicationContext;
}
}
@@ -1,6 +1,5 @@
package com.seriouscompany.business.java.fizzbuzz.packagenamingpackage.impl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.ApplicationContext;
import org.springframework.context.ConfigurableApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;
@@ -9,13 +8,10 @@
import com.seriouscompany.business.java.fizzbuzz.packagenamingpackage.interfaces.parameters.FizzBuzzUpperLimitParameter;
import com.seriouscompany.business.java.fizzbuzz.packagenamingpackage.impl.parameters.DefaultFizzBuzzUpperLimitParameter;
public class Main {
@Autowired
private static FizzBuzz _myFizzBuzz;
public static void main(String[] args) {
ApplicationContext context = new ClassPathXmlApplicationContext("spring.xml");
public final class Main {
public static void main(final String[] args) {
final ApplicationContext context = new ClassPathXmlApplicationContext("spring.xml");
final FizzBuzz myFizzBuzz = (FizzBuzz) context.getBean("standardFizzBuzz");
final FizzBuzzUpperLimitParameter fizzBuzzUpperLimit = new DefaultFizzBuzzUpperLimitParameter();
myFizzBuzz.fizzBuzz(fizzBuzzUpperLimit.obtainUpperLimitValue());
@@ -9,13 +9,17 @@
@Service
public class StandardFizzBuzz implements FizzBuzz {
private final FizzBuzzSolutionStrategyFactory _fizzBuzzSolutionStrategyFactory;
@Autowired
FizzBuzzSolutionStrategyFactory _fizzBuzzSolutionStrategyFactory;
public void fizzBuzz(int nFizzBuzzUpperLimit) {
public StandardFizzBuzz(final FizzBuzzSolutionStrategyFactory _fizzBuzzSolutionStrategyFactory) {
this._fizzBuzzSolutionStrategyFactory = _fizzBuzzSolutionStrategyFactory;
}
public void fizzBuzz(final int nFizzBuzzUpperLimit) {
final FizzBuzzSolutionStrategy mySolutionStrategy =
this._fizzBuzzSolutionStrategyFactory.createFizzBuzzSolutionStrategy();
this._fizzBuzzSolutionStrategyFactory.createFizzBuzzSolutionStrategy();
mySolutionStrategy.runSolution(nFizzBuzzUpperLimit);
}
}
@@ -9,13 +9,17 @@
@Service
public class BuzzStrategyFactory implements IsEvenlyDivisibleStrategyFactory {
private final BuzzStrategy _buzzStrategy;
@Autowired
private BuzzStrategy _buzzStrategy;
public BuzzStrategyFactory(final BuzzStrategy _buzzStrategy) {
this._buzzStrategy = _buzzStrategy;
}
@Override
public IsEvenlyDivisibleStrategy createIsEvenlyDivisibleStrategy() {
return _buzzStrategy;
return this._buzzStrategy;
}
}
@@ -10,12 +10,16 @@
@Service
public class BuzzStringPrinterFactory implements StringPrinterFactory {
private final BuzzStringPrinter _buzzStringPrinter;
@Autowired
private BuzzStringPrinter _buzzStringPrinter;
public BuzzStringPrinterFactory(final BuzzStringPrinter _buzzStringPrinter) {
this._buzzStringPrinter = _buzzStringPrinter;
}
@Override
public StringPrinter createStringPrinter() {
return _buzzStringPrinter;
return this._buzzStringPrinter;
}
}
@@ -10,11 +10,15 @@
@Service
public class BuzzStringReturnerFactory implements StringStringReturnerFactory {
private final BuzzStringReturner _myBuzzStringReturner;
@Autowired
private BuzzStringReturner _myBuzzStringReturner;
public BuzzStringReturnerFactory(final BuzzStringReturner _myBuzzStringReturner) {
this._myBuzzStringReturner = _myBuzzStringReturner;
}
@Override
public StringStringReturner createStringStringReturner() {
return _myBuzzStringReturner;
return this._myBuzzStringReturner;
}
}
@@ -9,12 +9,16 @@
@Service
public class EnterpriseGradeFizzBuzzSolutionStrategyFactory implements FizzBuzzSolutionStrategyFactory {
private final FizzBuzzSolutionStrategy _fizzBuzzSolutionStrategy;
@Autowired
private FizzBuzzSolutionStrategy _fizzBuzzSolutionStrategy;
public EnterpriseGradeFizzBuzzSolutionStrategyFactory(final FizzBuzzSolutionStrategy _fizzBuzzSolutionStrategy) {
this._fizzBuzzSolutionStrategy = _fizzBuzzSolutionStrategy;
}
@Override
public FizzBuzzSolutionStrategy createFizzBuzzSolutionStrategy() {
return _fizzBuzzSolutionStrategy;
return this._fizzBuzzSolutionStrategy;
}
}
@@ -11,12 +11,17 @@
public class FizzBuzzOutputGenerationContextVisitorFactory implements
OutputGenerationContextVisitorFactory {
private final FizzBuzzOutputGenerationContextVisitor _fizzBuzzOutputGenerationContextVisitor;
@Autowired
private FizzBuzzOutputGenerationContextVisitor _fizzBuzzOutputGenerationContextVisitor;
public FizzBuzzOutputGenerationContextVisitorFactory(
final FizzBuzzOutputGenerationContextVisitor _fizzBuzzOutputGenerationContextVisitor) {
this._fizzBuzzOutputGenerationContextVisitor = _fizzBuzzOutputGenerationContextVisitor;
}
@Override
public OutputGenerationContextVisitor createVisitor() {
return _fizzBuzzOutputGenerationContextVisitor;
return this._fizzBuzzOutputGenerationContextVisitor;
}
}
@@ -10,12 +10,16 @@
@Service
public class FizzStrategyFactory implements IsEvenlyDivisibleStrategyFactory {
@Autowired
private FizzStrategy _fizzStrategy;
@Override
private final FizzStrategy _fizzStrategy;
@Autowired
public FizzStrategyFactory(final FizzStrategy _fizzStrategy) {
this._fizzStrategy = _fizzStrategy;
}
@Override
public IsEvenlyDivisibleStrategy createIsEvenlyDivisibleStrategy() {
return _fizzStrategy;
return this._fizzStrategy;
}
}
@@ -10,12 +10,16 @@
@Service
public class FizzStringPrinterFactory implements StringPrinterFactory {
private final FizzStringPrinter _fizzStringPrinter;
@Autowired
FizzStringPrinter _fizzStringPrinter;
public FizzStringPrinterFactory(final FizzStringPrinter _fizzStringPrinter) {
this._fizzStringPrinter = _fizzStringPrinter;
}
@Override
public StringPrinter createStringPrinter() {
return _fizzStringPrinter;
return this._fizzStringPrinter;
}
}
@@ -10,12 +10,16 @@
@Service
public class FizzStringReturnerFactory implements StringStringReturnerFactory {
private final FizzStringReturner _fizzStringReturner;
@Autowired
private FizzStringReturner _fizzStringReturner;
public FizzStringReturnerFactory(final FizzStringReturner _fizzStringReturner) {
this._fizzStringReturner = _fizzStringReturner;
}
@Override
public StringStringReturner createStringStringReturner() {
return _fizzStringReturner;
return this._fizzStringReturner;
}
}
@@ -10,12 +10,16 @@
@Service
public class IntegerIntegerPrinterFactory implements IntegerPrinterFactory {
private final IntegerIntegerPrinter _integerIntegerPrinter;
@Autowired
private IntegerIntegerPrinter _integerIntegerPrinter;
public IntegerIntegerPrinterFactory(final IntegerIntegerPrinter _integerIntegerPrinter) {
this._integerIntegerPrinter = _integerIntegerPrinter;
}
@Override
public IntegerPrinter createPrinter() {
return _integerIntegerPrinter;
return this._integerIntegerPrinter;
}
}
@@ -11,12 +11,16 @@
public class IntegerIntegerStringReturnerFactory implements
IntegerStringReturnerFactory {
private final IntegerIntegerStringReturner _integerIntegerStringReturner;
@Autowired
private IntegerIntegerStringReturner _integerIntegerStringReturner;
public IntegerIntegerStringReturnerFactory(final IntegerIntegerStringReturner _integerIntegerStringReturner) {
this._integerIntegerStringReturner = _integerIntegerStringReturner;
}
@Override
public IntegerStringReturner createIntegerStringReturner() {
return _integerIntegerStringReturner;
return this._integerIntegerStringReturner;
}
}
Oops, something went wrong.

0 comments on commit 6f865cc

Please sign in to comment.