-
Notifications
You must be signed in to change notification settings - Fork 199
Internet provider: re-implement url, add webdomain method #841
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
PR Summary
Edit: by @kingthorin |
18e411e
to
6972ad1
Compare
Here's a sample: https://gwyn.friesen:k23412dxo7bc8@www.genie-parisian.biz:47439/?aut=magnam&voluptatum=deserunt#assumenda
https://www.jorge-mcglynn.info:19707/?reiciendis=aut&pariatur=sequi#ut
https://www.piper-kilback.net:1013/et?rerum=beatae&est=magni#qui
https://klara.okon:754vazl1z7n1f10@www.jacquiline-hintz.com:31519/?corrupti=consectetur&nihil=minima
http://www.mike-watsica.com/#consequatur
https://www.candyce-goldner.biz/omnis?vero=molestiae&dolorem=rerum#enim
https://kraig.auer:23j7f9i03n9d95@www.bert-rogahn.org/occaecati/eaconsequatur?explicabo=placeat&unde=aut#commodi
http://www.verdell-bogisich.net/ut/similique?error=magnam&perferendis=impedit
https://www.thao-upton.io/qui/liberoenim?consequuntur=earum&omnis=eveniet
http://www.sommer-nienow.info:8069/ |
91fa67a
to
639fadd
Compare
@bodiam happy with the current implementation? (I know it only needs one review, but wanted to give you a chance since you'd provided feedback earlier.) |
Thanks for your work here. It's not entirely what I expected / had in mind. I don't want to deprecate the url() method, I rather have it return sensible urls, and the same for urn(). The current methods seem not like great replacements, I don't think I've ever seen a username and password in a web url (in ftp urls perhaps), and I don't think they would provide useful generators like this. |
I don't mind dropping the credential part, no big deal. As for completely re-working |
I don't think returning a url from a url method is that unexpected. But launching 2.0 with already deprecated methods in it, that's not ideal. |
Okay. I'll trim the cred part and rename |
- Internet.java > Re-implement url. Have it leverage the new webdomain method (which contains the original url impl). The new url implementation creates a fully formed URL with random elements. - InternetTest.java > Updated to test the new url and webdomain methods. Signed-off-by: kingthorin <kingthorin@users.noreply.github.com>
@bodiam Done? 😀 |
public String url() { | ||
final byte[] bts = faker.random().nextRandomBytes(6); | ||
return url(bts[0] % 2 == 0, bts[1] % 2 == 0, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
tiny formatting thing here, but all good.
LGTM! |
Fixes #840