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
# Your init script | |
# | |
# Atom will evaluate this file each time a new window is opened. It is run | |
# after packages are loaded/activated and after the previous editor state | |
# has been restored. | |
# | |
# An example hack to log to the console when each text editor is saved. | |
# | |
# atom.workspace.observeTextEditors (editor) -> | |
# editor.onDidSave -> |
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
public class AsyncTester { | |
protected static final int HTTP_OK = 200; | |
protected ApiCallback mCallback; | |
private ProtocolVersion mHttpVersion; | |
protected AsyncHttpClient mHttpClient = new AsyncHttpClient(); |
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
<dependency> | |
<groupId>org.hibernate</groupId> | |
<artifactId>hibernate-core</artifactId> | |
<version>4.2.4.Final</version> | |
</dependency> | |
<dependency> | |
<groupId>org.hibernate</groupId> | |
<artifactId>hibernate-annotations</artifactId> | |
<version>3.5.6-Final</version> | |
</dependency> |
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
class FeatureContext extends MinkContext | |
implements KernelAwareInterface | |
{ | |
private $kernel; | |
private $parameters; | |
/** | |
* Initializes context with parameters from behat.yml. | |
* | |
* @param array $parameters |
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
default: | |
paths: | |
features: src/Acme/MyBundle/Features | |
bootstrap: %behat.paths.features%/bootstrap | |
extensions: | |
Behat\Symfony2Extension\Extension: | |
mink_driver: true | |
kernel: | |
env: test | |
debug: true |
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
Given I have a calculator | |
When I add 2 and 2 | |
Then the result should be 4 | |
Given I have a calculator | |
When I add 2 and -2 | |
Then the result should be 0 | |
Given I have a calculator | |
When I add -2 and -2 |
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
public void testSuma() { | |
assertEqualas(4, Calculadora.suma(2, 2)); | |
assertEqualas(0, Calculadora.suma(2, -2)); | |
assertEqualas(-4, Calculadora.suma(-2, -2)); | |
} |
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
@Inject TelephonyManager mTelephonyManager | |
public void onCreate(final Bundle savedInstanceState) { | |
super.onCreate(savedInstanceState); | |
((FinderApplication) getApplication()).getGraph().inject(this); | |
} |
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
@Module( | |
entryPoints = { | |
MyApplication.class, | |
} | |
) | |
public class ServiceModule { | |
private Context mContext; | |
public ServiceModule(Context context) { |
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
public class MyApplication extends Application { | |
private ObjectGraph mObjectGraph; | |
@Override | |
public final void onCreate() { | |
super.onCreate(); | |
mObjectGraph = ObjectGraph.create(new ServiceModule(this)); | |
} |
NewerOlder