Commit graph

124 commits

Author SHA1 Message Date
Chris Beams
486cd9824e
Introduce app.gui.MainModule 2014-11-06 16:58:23 +01:00
Chris Beams
21098afd45
Optimize imports 2014-11-06 16:58:22 +01:00
Chris Beams
96fa93f608
Introduce io.bitsquare.msg.tomp2p package 2014-11-06 16:58:20 +01:00
Chris Beams
e201bf88ce
Rename i.b.network.{BootstrapNode=>BootstrapNodes} 2014-11-06 14:00:36 +01:00
Chris Beams
640a736ec3
Repeat TomP2PTests tests using @Repeat vs. loops 2014-11-06 13:17:54 +01:00
Chris Beams
1a92b05bf4
Introduce @Repeat and RepeatRule for repeatable @Test methods
With thanks to original author Frank Appel (@fappel)

See:
 - https://gist.github.com/fappel/8bcb2aea4b39ff9cfb6e
 - http://www.codeaffine.com/2013/04/10/running-junit-tests-repeatedly-without-loops/
2014-11-06 13:17:28 +01:00
Chris Beams
8b6f0ac64e
Refactor TomP2PTests
- Introduce use of Node abstraction for concision
 - Use to BootstrapNode#LOCALHOST and #DIGITAL_OCEAN1 vs. repeating info
 - Make all configuration variables static and final constants
2014-11-06 13:17:28 +01:00
Chris Beams
655100e69f
Introduce Node#at static factory and NodeTests 2014-11-06 11:25:52 +01:00
Chris Beams
da163bcc97
Introduce io.bitsquare.network.Node#DEFAULT_PORT 2014-11-06 11:25:51 +01:00
Manfred Karrer
4fb8030a43 Add loops, add extra SeedNode class, remove LanTest class 2014-11-05 20:41:34 +01:00
Manfred Karrer
bcaa8b9946 Fix random ports 2014-11-05 17:02:26 +01:00
Manfred Karrer
96f8a6c281 Use @Ignore 2014-11-05 16:47:12 +01:00
Manfred Karrer
ef68e08b50 Fix return value 2014-11-05 16:44:59 +01:00
Manfred Karrer
c8a470fb7b Add test with pong reply 2014-11-05 16:20:07 +01:00
Manfred Karrer
25be5bdbe1 Finished tests for localhost case 2014-11-05 15:37:27 +01:00
Manfred Karrer
afe7ec295b Add shutdown method 2014-11-05 15:09:37 +01:00
Manfred Karrer
879c5ca244 Use @Ignore for class, add Put test 2014-11-05 15:06:04 +01:00
Manfred Karrer
5533be6e57 Rename to TomP2PTests, add logs 2014-11-05 14:59:59 +01:00
Manfred Karrer
7fa631dfde Refactor tests (WIP) 2014-11-05 14:45:50 +01:00
Manfred Karrer
28b6e0ad9d WIP 2014-11-05 02:05:42 +01:00
Manfred Karrer
58da80ca2d Add bootstrapping methods 2014-11-05 02:05:42 +01:00
Chris Beams
dc7d861f8e
Rename io.bitsquare.{=>gui}.FatalException
Localize this exception within the gui package for now, as it's the only
place where it's used at the moment.
2014-11-05 01:13:31 +01:00
Chris Beams
55ef0b43d7
Rename io.bitsquare.{di=>app}.BitsquareModule 2014-11-05 01:13:30 +01:00
Chris Beams
11b6a4a341
Remove BitsquareTestSuite
This class is unnecessary; Gradle runs all JUnit test classes by
default, and IDEA and other IDEs automatically detect JUnit test classes
as well.
2014-11-05 01:13:28 +01:00
Chris Beams
fe3985a510
Rename io.bitsquare.{util=>gui}.ViewLoader 2014-11-05 01:13:28 +01:00
Chris Beams
865cf39e64
Remove static access to Bitsquare#getAppName 2014-11-05 01:13:26 +01:00
Chris Beams
6f27c5ce29
Remove static access to BitsquareUI#getPrimaryStage
- Bind BitsquareUI#start's primaryStage for DI
 - Statically inject primaryStage directly into Help and Popups
2014-11-05 01:13:25 +01:00
Chris Beams
6f830d20c9
Introduce ViewLoaderTest and FxmlResource interface
Tests basic loading of FXML resources via the ViewLoader API. Also
introduces the FxmlResource abstraction, an interface which the
Nagivation.Items enum now implements. This simplifies the process of
testing, e.g. in this case testing a non-existent resource without
having to add a bogus value to the enum itself.

Note the @BeforeClass logic necessary to initialize the JavaFX platform.
This is necessary in order to avoid "Toolkit not initialized"
exceptions. See http://stackoverflow.com/q/11385604 for details.
2014-11-05 01:13:21 +01:00
Chris Beams
c71d9a0fb8
Remove UI test runner classes and .fxml files
These classes were used during individual screen creation but are now
effectively dead test code.
2014-11-05 01:13:18 +01:00
Chris Beams
830932d93d
Strip trailing whitespace 2014-11-03 12:33:41 +01:00
Manfred Karrer
4e5fbb5f0b Add chaching flag to tests 2014-11-02 20:36:20 +01:00
Manfred Karrer
03f158f61d Use testnet and server seed as default, fix logs 2014-11-01 14:38:20 +01:00
Manfred Karrer
0831052d77 Update UtilsDHT2 2014-10-31 18:43:01 +01:00
Chris Beams
00af59aa20
Introduce network package and Peer abstraction
Prior to this change, TomP2P's 'PeerAddress' was used heavily throughout
Bitsquare, effectively tying many parts of the system to the TomP2P API
when they otherwise had no need to be aware of TomP2P at all.

The Peer interface (and the new 'network' package to which it belongs)
is designed to provide this missing abstraction and is a step toward
isolating TomP2P functionality as completely as possible--so as to make
the latter easy to test (and easy to replace if necessary).

A very simple TomP2PPeer implementation of the Peer interface has been
provided in the new 'network.tomp2p' package. It is currently just a
wrapper for an underlying PeerAddress object, but it is reasonable to
expect that more functionality will find its way into this class over
time.
2014-10-30 16:52:46 +01:00
Chris Beams
88951d71b8
Capitalize 'Bitsquare' consistently 2014-10-30 15:52:19 +01:00
Manfred Karrer
9c8b76d2b6 Update to latest TomP2P master 2014-10-27 15:09:52 +01:00
Manfred Karrer
52da080f22 Add simple Seednode for testing 2014-10-26 16:32:53 +01:00
Manfred Karrer
1184476448 Rename orders to portfolio, orderbook to offerbook 2014-10-25 01:25:01 +02:00
Manfred Karrer
68387eb13d Rename orders to portfolio, orderbook to offerbook 2014-10-25 01:18:38 +02:00
Manfred Karrer
12bbfd91f2 Updae for port forwarding 2014-10-24 23:38:04 +02:00
Manfred Karrer
ec2301c6ab Update to lasted TomP2P head 2014-10-24 21:50:51 +02:00
Manfred Karrer
39febbac4b Add tests for add, remove 2014-10-24 21:18:18 +02:00
Manfred Karrer
aeb7730147 Use async handlers at Bootstrap 2014-10-24 19:35:12 +02:00
Manfred Karrer
f75c5340d2 Fix bug in relay mode 2014-10-24 14:18:10 +02:00
Manfred Karrer
f8df890a47 Add DHT test with 2 seed servers 2014-10-24 12:00:53 +02:00
Steve Myers
890c57d58a cleanup 2014-10-23 22:33:18 -07:00
Steve Myers
495715fdf4 updated seed peer mode to add all seed peers with a different peerID as peers 2014-10-23 22:21:14 -07:00
Steve Myers
fd9024f6ea updated seed peer mode to add all other seed peers with a different peerID 2014-10-23 22:13:21 -07:00
Manfred Karrer
4a315d55a7 Rename Pending trades to Open trades 2014-10-23 22:01:34 +02:00
Manfred Karrer
98b6f72f90 Use security deposit as flat rate instead of percentage, remove wording of collateral 2014-10-23 15:32:01 +02:00