shindesandeep / facebook-java-api

Automatically exported from code.google.com/p/facebook-java-api
0 stars 0 forks source link

IFacebookRestClientTest.test_dataStore fails on "cleanup" step #142

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
Since I've never run the test before it, it fails on the "cleanup" step;
please make it more robust. :)

-------------------------------------------------------------------------------
Test set: com.google.code.facebookapi.IFacebookRestClientTest
-------------------------------------------------------------------------------
Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 0.244 sec
<<< FAILURE!
test_dataStore(com.google.code.facebookapi.IFacebookRestClientTest)  Time
elapsed: 0.239 sec  <<< ERROR!
com.google.code.facebookapi.FacebookException: Invalid parameter: object
type: supports
        at
com.google.code.facebookapi.FacebookXmlRestClient.parseCallResult(FacebookXmlRes
tClient.java:205)
        at
com.google.code.facebookapi.FacebookXmlRestClient.parseCallResult(FacebookXmlRes
tClient.java:67)
        at
com.google.code.facebookapi.ExtensibleClient.callMethod(ExtensibleClient.java:61
1)
        at
com.google.code.facebookapi.ExtensibleClient.callMethod(ExtensibleClient.java:50
7)
        at
com.google.code.facebookapi.ExtensibleClient.fql_query(ExtensibleClient.java:438
)
        at
com.google.code.facebookapi.IFacebookRestClientTest.test_dataStore(IFacebookRest
ClientTest.java:40)
.....

Original issue reported on code.google.com by fern...@gmail.com on 18 Nov 2008 at 3:23

GoogleCodeExporter commented 8 years ago
just putting to high, since it breaks tests..

Original comment by fern...@gmail.com on 18 Nov 2008 at 3:31

GoogleCodeExporter commented 8 years ago
On your application you need to (as specified in the unit test):

 * This test requires that you've setup your data store to have: * An object called
"footballteam" which has properties * name (string) * stadium (string) * An
 * association called "supports" which has aliases: * user (Any) * footballteam
(footballteam)

This requires going into http://www.facebook.com/developers/apps.php and 
setting up a
couple of things. Are you happy doing that in *your* application or should we 
try and
get hold of a special APIKEY that's just for this purpose? We could then 
hardcode
that APIKEY in the JUnit test.

For now, please do try adding the settings to your own datastore if you're happy
doing so. Will only take a minute or so and will allow you to verify the test.

Original comment by david.j....@googlemail.com on 18 Nov 2008 at 9:54

GoogleCodeExporter commented 8 years ago
how would I setup for the test?  can we do it through code?  or is it manual?

Original comment by fern...@gmail.com on 19 Nov 2008 at 7:03

GoogleCodeExporter commented 8 years ago
I'm going to build out the API to include the functions to add associations and
objects. They exist in the facebook API but I only implemented a subset of the
datastore API.

In the meantime, feel free to add the setup manually.

Original comment by david.j....@googlemail.com on 24 Nov 2008 at 9:27

GoogleCodeExporter commented 8 years ago
Low priority because test is disabled and the functionality that it's testing 
does work.

Original comment by david.j....@googlemail.com on 24 Nov 2008 at 9:33

GoogleCodeExporter commented 8 years ago
Implemented most of the Data Store API now, the test now runs without the tester
having to setup anything manually using the Data Store Admin feature.

Original comment by david.j....@googlemail.com on 2 Dec 2008 at 12:31