input stringlengths 28 18.7k | output stringlengths 39 1.69k |
|---|---|
testNotEmpty ( ) { when ( map . isEmpty ( ) ) . thenReturn ( false ) ; boolean empty = tested . isEmpty ( ) ; "<AssertPlaceHolder>" ; } isEmpty ( ) { return dayTimeValues ( ) . allMatch ( this :: isNone ) ; } | org . junit . Assert . assertFalse ( empty ) |
testFetchFromScumd ( ) { final com . asolutions . scmsshd . SCuMD sshd = new com . asolutions . scmsshd . SCuMD ( ) ; try { int serverPort = generatePort ( ) ; System . out . println ( ( "Running<sp>on<sp>port:<sp>" + serverPort ) ) ; sshd . setPort ( serverPort ) ; sshd . setKeyPairProvider ( new org . apache . sshd .... | org . junit . Assert . assertTrue ( ( ( r . getTrackingRefUpdates ( ) . size ( ) ) > 0 ) ) |
testFluentInterfaceWithUser ( ) { System . out . println ( "testFluentInterfaceWithUser" ) ; team . bus . model . bean . DataBaseInfo instance = new team . bus . model . bean . DataBaseInfo ( ) ; java . lang . String expResult = "postgres" ; instance . withUser ( expResult ) ; java . lang . String result = instance . g... | org . junit . Assert . assertEquals ( expResult , result ) |
testFindUntrackedFile ( ) { copy ( artifact , manager . getPathForLocalArtifact ( artifact ) ) ; org . sonatype . aether . repository . LocalArtifactRequest request = new org . sonatype . aether . repository . LocalArtifactRequest ( artifact , java . util . Arrays . asList ( repository ) , testContext ) ; org . sonatyp... | org . junit . Assert . assertTrue ( result . isAvailable ( ) ) |
hasContextTests ( ) { "<AssertPlaceHolder>" ; } getContext ( ) { return getParent ( ) . getContext ( ) ; } | org . junit . Assert . assertNotNull ( c . getContext ( ) ) |
autorisatieGeldigStelselGbaDatumOvergangLeeg ( ) { toegangLeveringsAutorisatie . getLeveringsautorisatie ( ) . setStelsel ( Stelsel . GBA ) ; toegangLeveringsAutorisatie . getGeautoriseerde ( ) . getPartij ( ) . setDatumOvergangNaarBrp ( null ) ; final boolean isGeldig = service . isAutorisatieGeldig ( toegangLeverings... | org . junit . Assert . assertTrue ( isGeldig ) |
testNonMapRYarnClasspath ( ) { assumeNonMaprProfile ( ) ; com . dremio . provision . yarn . DacDaemonYarnApplication . Environment myEnv = new com . dremio . provision . yarn . DacDaemonYarnApplication . Environment ( ) { @ com . dremio . provision . yarn . Override public java . lang . String getEnv ( java . lang . St... | org . junit . Assert . assertTrue ( names . isEmpty ( ) ) |
testNodeValNode ( ) { java . util . Map < java . lang . Integer , java . lang . Integer > input = new java . util . LinkedHashMap ( ) ; input . put ( 1 , 1 ) ; input . put ( 2 , 33 ) ; input . put ( 3 , 3 ) ; input . put ( 4 , 4 ) ; input . put ( 5 , 4 ) ; input . put ( 6 , 6 ) ; input . put ( 7 , 7 ) ; input . put ( 8... | org . junit . Assert . assertTrue ( set . contains ( new org . eclipse . imp . pdb . test . persistent . TrieSetTests . DummyValue ( entry . getKey ( ) , entry . getValue ( ) ) ) ) |
testLeaseTasksOnlyReturnsSpecifiedNumberOfTasks ( ) { com . google . appengine . api . taskqueue . Queue queue = com . google . appengine . api . taskqueue . QueueFactory . getQueue ( "pull-queue" ) ; com . google . appengine . api . taskqueue . TaskHandle th1 = queue . add ( withMethod ( com . google . appengine . tck... | org . junit . Assert . assertEquals ( countLimit , handles . size ( ) ) |
contextualIndex ( ) { com . addthis . hydra . data . filter . value . ValueFilter valueFilter = decodeObject ( com . addthis . hydra . data . filter . value . ValueFilterIndex . class , "index.field<sp>=<sp>idx" ) ; com . addthis . bundle . core . Bundle bundle = com . addthis . bundle . core . Bundles . decode ( "idx<... | org . junit . Assert . assertEquals ( valueFilter . filter ( arr , bundle ) , arr . get ( 2 ) ) |
testAcceptInValidParameter4 ( ) { final org . openspotlight . graph . query . console . ConsoleState state = new org . openspotlight . graph . query . console . ConsoleState ( null ) ; state . setInput ( "add<sp>property<sp>" ) ; "<AssertPlaceHolder>" ; } accept ( org . openspotlight . graph . query . console . Console... | org . junit . Assert . assertThat ( command . accept ( state ) , org . hamcrest . core . Is . is ( false ) ) |
testParameter ( ) { final net . violet . platform . api . actions . Action theAction = new net . violet . platform . api . actions . stores . GetStores ( ) ; final net . violet . platform . api . callers . APICaller caller = getPublicApplicationAPICaller ( ) ; final java . util . Map < java . lang . String , java . lan... | org . junit . Assert . assertNotNull ( theResult ) |
testGetTypeInfo ( ) { com . sun . jna . platform . win32 . COM . ITypeLib shellTypeLib = loadShellTypeLib ( ) ; com . sun . jna . ptr . PointerByReference ppTInfo = new com . sun . jna . ptr . PointerByReference ( ) ; com . sun . jna . platform . win32 . WinNT . HRESULT hr = shellTypeLib . GetTypeInfo ( new com . sun .... | org . junit . Assert . assertTrue ( com . sun . jna . platform . win32 . COM . COMUtils . SUCCEEDED ( hr ) ) |
testEncryptSignatureConfig ( ) { org . apache . cxf . service . Service service = createService ( ) ; java . util . Map < java . lang . String , java . lang . Object > inConfig = new java . util . HashMap ( ) ; inConfig . put ( ConfigurationConstants . ACTION , ( ( ( org . apache . wss4j . common . ConfigurationConstan... | org . junit . Assert . assertEquals ( "test" , echo . echo ( "test" ) ) |
testRenderEnvelopeIProgressMonitor ( ) { org . locationtech . udig . project . internal . render . RenderExecutor ex = map . getRenderManagerInternal ( ) . getRenderExecutor ( ) ; java . awt . image . BufferedImage image = ex . getContext ( ) . getImage ( w , h ) ; testImage ( image , true , ( - 1 ) , ( - 1 ) , ( - 1 )... | org . junit . Assert . assertTrue ( ( image == ( ex . getContext ( ) . getImage ( w , h ) ) ) ) |
testEscapeAddressElement ( ) { System . out . println ( "escapeAddressElement" ) ; java . lang . String element = "" ; java . lang . String expResult = "" ; java . lang . String result = org . jboss . loom . utils . as7 . AS7CliUtils . escapeAddressElement ( element ) ; "<AssertPlaceHolder>" ; org . junit . Assert . fa... | org . junit . Assert . assertEquals ( expResult , result ) |
unsubscribeFromService_SubscriptionManger_Authorized ( ) { java . lang . reflect . Method method = beanClass . getMethod ( "unsubscribeFromService" , java . lang . String . class ) ; boolean isSubscriptionManagerRoleAllowed = isRoleAllowed ( method , UserRoleType . SUBSCRIPTION_MANAGER ) ; "<AssertPlaceHolder>" ; } isR... | org . junit . Assert . assertTrue ( isSubscriptionManagerRoleAllowed ) |
validationOfDoublePropertyDifferentTagHierachyD_Namespace ( ) { java . lang . String room = "<?xml<sp>version='1.0'<sp>encoding='UTF-8'?>" + ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( "Rooms" 3 http : com . sap . core . odata . api . edm . EdmEntitySet entitySet = com . sap . core . odata . testutil . mock . MockFacade . ... | org . junit . Assert . assertNotNull ( result ) |
cloneViaMBean ( ) { javax . management . MBeanServer mbeanServer = java . lang . management . ManagementFactory . getPlatformMBeanServer ( ) ; javax . management . ObjectName name = new javax . management . ObjectName ( "org.apache.karaf:type=instance,name=root" ) ; int oldNum = getInstancesNum ( mbeanServer , name ) ;... | org . junit . Assert . assertEquals ( ( oldNum + 1 ) , getInstancesNum ( mbeanServer , name ) ) |
testSignalRefWithValidSignal ( ) { org . kie . workbench . common . stunner . bpmn . definition . property . event . signal . SignalRef signalRef = new org . kie . workbench . common . stunner . bpmn . definition . property . event . signal . SignalRef ( org . kie . workbench . common . stunner . bpmn . definition . pr... | org . junit . Assert . assertTrue ( validations . isEmpty ( ) ) |
given_valid_OTF_strictValidatorPasses ( ) { org . mabb . fontverter . FVFont font = org . mabb . fontverter . FontVerter . readFont ( ( ( org . mabb . fontverter . TestUtils . TEST_PATH ) + "FontVerter+SimpleTestFont.otf" ) ) ; "<AssertPlaceHolder>" ; } isValid ( ) { return ( getValidationErrors ( ) . size ( ) ) == 0 ;... | org . junit . Assert . assertTrue ( font . isValid ( ) ) |
postToOpenByOthersTest ( ) { doLogout ( ) ; doLoginWithDummyUser ( ) ; final cc . kune . core . shared . dto . StateContentDTO newPost = listsService . newPost ( getHash ( ) , openList . getStateToken ( ) , "lalala" ) ; "<AssertPlaceHolder>" ; } getStateToken ( ) { return getContainer ( ) . getStateToken ( ) . copy ( )... | org . junit . Assert . assertNotNull ( newPost ) |
simple ( ) { com . asakusafw . utils . jcommander . JCommanderWrapper < java . util . function . Supplier < java . lang . String > > commander = new com . asakusafw . utils . jcommander . JCommanderWrapper ( "PG" , new com . asakusafw . utils . jcommander . JCommanderWrapperTest . Cmd ( "R" ) ) ; java . util . Optional... | org . junit . Assert . assertThat ( result , is ( java . util . Optional . of ( "R" ) ) ) |
executeQueryLoadSubIdsAndOrgsForMyCustomersWithPagination ( ) { customerOrg = createCustomer ( ) ; currentUser = createSupplier ( customerOrg ) ; java . util . List < org . oscm . domobjects . Subscription > list = subscriptionServiceBean . executeQueryLoadSubIdsAndOrgsForMyCustomers ( org . oscm . subscriptionservice ... | org . junit . Assert . assertNotNull ( list ) |
testPropagateWhenUnassigningUserFromRoles ( ) { long [ ] userIds = addUsers ( ) ; com . liferay . portal . kernel . service . UserGroupRoleServiceUtil . deleteUserGroupRoles ( userIds [ 0 ] , organization . getGroupId ( ) , addStandardRoles ( ) ) ; "<AssertPlaceHolder>" ; } isPropagateRoles ( ) { return com . liferay .... | org . junit . Assert . assertTrue ( isPropagateRoles ( ) ) |
testExecute ( ) { action . execute ( state ) ; "<AssertPlaceHolder>" ; } isExecuted ( ) { if ( ( executed ) == null ) { return de . rub . nds . tlsattacker . core . workflow . action . TlsAction . EXECUTED_DEFAULT ; } return executed ; } | org . junit . Assert . assertTrue ( action . isExecuted ( ) ) |
shouldBeActiveRegardlessOfWhitespaceAroundActivationParams ( ) { java . util . Map < java . lang . String , java . lang . String [ ] > parameters = new java . util . HashMap ( ) ; parameters . put ( "parameterWithoutValue" , null ) ; parameters . put ( "anotherParam" , null ) ; when ( request . getParameterMap ( ) ) . ... | org . junit . Assert . assertTrue ( isActive ) |
data_type_unknown ( ) { java . io . StringWriter sw = new java . io . StringWriter ( ) ; ezvcard . io . json . JCardRawWriter writer = new ezvcard . io . json . JCardRawWriter ( sw , false ) ; writer . writeStartVCard ( ) ; writer . writeProperty ( "prop" , null , ezvcard . io . json . JCardValue . single ( "value" ) )... | org . junit . Assert . assertEquals ( expected , actual ) |
testUnknownHiveVersion ( ) { hiveBindingFactory . createInternal ( org . apache . parquet . hive . TestHiveBindingFactory . BlankHiveVersion . class ) ; "<AssertPlaceHolder>" ; } createInternal ( java . lang . Class ) { java . lang . String hiveVersion ; try { java . lang . reflect . Method getVersionMethod = hiveVersi... | org . junit . Assert . assertEquals ( org . apache . parquet . hive . internal . Hive012Binding . class , hiveBindingFactory . createInternal ( org . apache . parquet . hive . TestHiveBindingFactory . BlankHiveVersion . class ) ) |
testNullInitialization ( ) { org . dashbuilder . displayer . client . widgets . filter . TimeInstantEditor timeInstantEditor = new org . dashbuilder . displayer . client . widgets . filter . TimeInstantEditor ( timeInstantView , timeAmountEditor ) ; timeInstantEditor . init ( null , changeCommand ) ; "<AssertPlaceHolde... | org . junit . Assert . assertEquals ( timeInstantView , timeInstantEditor . view ) |
testExtractsPropertyTimes ( ) { com . epimorphics . lda . specs . APISpec a = com . epimorphics . lda . apispec . tests . SpecUtil . specFrom ( s ) ; com . epimorphics . lda . apispec . tests . Resource P = spec . getResource ( spec . expandPrefix ( ":P" ) ) ; com . epimorphics . lda . apispec . tests . Resource Q = sp... | org . junit . Assert . assertEquals ( pet , a . getPropertyExpiryTimes ( ) ) |
testInferPrivacyPolicy ( ) { org . societies . privacytrust . privacyprotection . test . privacypolicy . PrivacyPolicyManagerDeprecatedTest . LOG . info ( "[[TEST]]<sp>testInferPrivacyPolicy" ) ; org . societies . api . privacytrust . privacy . model . privacypolicy . RequestPolicy expected = new org . societies . api ... | org . junit . Assert . assertEquals ( expected , actual ) |
testEquals ( ) { org . hisp . dhis . analytics . AnalyticsTable tableA = new org . hisp . dhis . analytics . AnalyticsTable ( org . hisp . dhis . analytics . AnalyticsTableType . DATA_VALUE , com . google . common . collect . Lists . newArrayList ( ) , com . google . common . collect . Lists . newArrayList ( ) ) ; org ... | org . junit . Assert . assertEquals ( 1 , uniqueList . size ( ) ) |
testGetNonExistingTranslatedString ( ) { java . lang . String nonExistingKey = java . util . UUID . randomUUID ( ) . toString ( ) ; java . lang . String translatedString = localeService . getTranslatedString ( nonExistingKey ) ; java . lang . String expectedResult = nonExistingKey + "<sp>(Missing<sp>resource<sp>in<sp>L... | org . junit . Assert . assertEquals ( translatedString , expectedResult ) |
testConnectionWarning ( ) { final ch . cyberduck . core . Host host = new ch . cyberduck . core . Host ( new ch . cyberduck . core . TestProtocol ( ) , "test.cyberduck.ch" , new ch . cyberduck . core . Credentials ( "u" , "p" ) ) ; final java . util . concurrent . atomic . AtomicBoolean warned = new java . util . concu... | org . junit . Assert . assertTrue ( warned . get ( ) ) |
setConnectorId_positiveInteger_connectorIdIsSet ( ) { java . lang . Integer positive = 42 ; request . setConnectorId ( positive ) ; "<AssertPlaceHolder>" ; } getConnectorId ( ) { return connectorId ; } | org . junit . Assert . assertThat ( request . getConnectorId ( ) , org . hamcrest . CoreMatchers . equalTo ( positive ) ) |
testGetLogger ( ) { "<AssertPlaceHolder>" ; } getLogger ( ) { return com . laytonsmith . core . Static . LOGGER ; } | org . junit . Assert . assertNotNull ( com . laytonsmith . core . Static . getLogger ( ) ) |
getGrants ( ) { match = new com . alibaba . citrus . turbine . auth . impl . AuthMatch ( "test" , new com . alibaba . citrus . turbine . auth . impl . AuthGrant [ ] { new com . alibaba . citrus . turbine . auth . impl . AuthGrant ( ) } ) ; "<AssertPlaceHolder>" ; } getGrants ( ) { return grants ; } | org . junit . Assert . assertEquals ( 1 , match . getGrants ( ) . length ) |
shouldCreateViews ( ) { "<AssertPlaceHolder>" ; } getView ( int , android . view . View , android . view . ViewGroup ) { android . widget . TextView textView = ( convertView == null ) ? createView ( parent ) : ( ( android . widget . TextView ) ( convertView ) ) ; textView . setText ( names . get ( position ) ) ; return... | org . junit . Assert . assertThat ( ( ( android . widget . TextView ) ( adapter . getView ( 1 , null , parent ) ) ) . getText ( ) . toString ( ) , org . hamcrest . CoreMatchers . equalTo ( "foo" ) ) |
testGetBounds ( ) { final java . lang . String namespaceUri = "http://online.socialchange.net.au" ; final java . lang . String localName = "RoadSegment" ; final org . opengis . feature . type . Name typeName = org . geotools . data . complex . feature . type . Types . typeName ( namespaceUri , localName ) ; java . net ... | org . junit . Assert . assertEquals ( expected , actual ) |
boundaryToBytesForZRangeByLexShouldReturnDefaultValueWhenBoundaryIsNull ( ) { byte [ ] defaultValue = "tyrion" . getBytes ( ) ; "<AssertPlaceHolder>" ; } boundaryToBytesForZRangeByLex ( org . springframework . data . redis . connection . RedisZSetCommands . Range . Boundary , byte [ ] ) { if ( ( boundary == null ) || (... | org . junit . Assert . assertThat ( org . springframework . data . redis . connection . jedis . JedisConverters . boundaryToBytesForZRangeByLex ( null , defaultValue ) , org . hamcrest . core . Is . is ( defaultValue ) ) |
testMatchesNoMatches ( ) { org . biojava . bio . seq . GappedSequence mismatch = org . biojava . bio . seq . DNATools . createGappedDNASequence ( "gggggggggggggggggggg" , "mismatch" ) ; org . biojava . bio . alignment . AlignmentPair allMismatches = new org . biojava . bio . alignment . AlignmentPair ( mismatch , subje... | org . junit . Assert . assertEquals ( java . util . Collections . < com . google . common . collect . Range < java . lang . Long > > emptyList ( ) , org . nmdp . ngs . align . Alignments . matches ( allMismatches ) ) |
safelyAddFamily_test ( ) { scouter . server . CounterManager counterManager = scouter . server . CounterManager . getInstance ( ) ; scouter . lang . Family hostFamily = counterManager . getCounterEngine ( ) . getFamily ( "host" ) ; java . lang . String newFamilyName = "host-custom-generated" ; hostFamily . setName ( ne... | org . junit . Assert . assertEquals ( hostFamily , generated ) |
testGetOrCreateUsingNameKey ( ) { org . aeonbits . owner . cache . CacheConfigTest . MyConfig first = org . aeonbits . owner . ConfigCache . getOrCreate ( "MyConfig" , org . aeonbits . owner . cache . CacheConfigTest . MyConfig . class ) ; org . aeonbits . owner . cache . CacheConfigTest . MyConfig second = org . aeonb... | org . junit . Assert . assertSame ( first , second ) |
testAvailableLocales ( ) { final java . util . Set < java . util . Locale > result = org . eclipse . jdt . internal . ui . text . spelling . SpellCheckEngine . getLocalesWithInstalledDictionaries ( ) ; "<AssertPlaceHolder>" ; } size ( ) { return fExcluded . length ; } | org . junit . Assert . assertTrue ( ( ( result . size ( ) ) >= 0 ) ) |
testIsValid ( ) { net . sourceforge . squirrel_sql . client . gui . db . SQLAlias uninitializedAlias = new net . sourceforge . squirrel_sql . client . gui . db . SQLAlias ( ) ; "<AssertPlaceHolder>" ; } isValid ( ) { return false ; } | org . junit . Assert . assertEquals ( false , uninitializedAlias . isValid ( ) ) |
testGetNearest_wrongCountryCode ( ) { com . gisgraphy . domain . geoloc . entity . City p1 = com . gisgraphy . test . GisgraphyTestHelper . createCity ( "paris" , 48.86667F , 2.3333F , 1L ) ; p1 . addAlternateName ( new com . gisgraphy . domain . geoloc . entity . AlternateName ( "Paname" , com . gisgraphy . domain . v... | org . junit . Assert . assertNull ( result ) |
testGetAll ( ) { java . util . List < org . yes . cart . domain . dto . CategoryDTO > list = dtoService . getAll ( ) ; "<AssertPlaceHolder>" ; } getAll ( ) { return this . shopDao . findAll ( ) ; } | org . junit . Assert . assertFalse ( list . isEmpty ( ) ) |
testSendNotificationWithAppKeyWithSpecialCharacter22 ( ) { int erroCode = ErrorCodeEnum . NOERROR . value ( ) ; java . lang . String msgTitle = "jpush" ; java . lang . String msgContent = "jpush;" ; cn . jpush . api . MessageResult result = jpush . sendNotificationWithAppKey ( sendNo , msgTitle , msgContent ) ; "<Asser... | org . junit . Assert . assertEquals ( erroCode , result . getErrcode ( ) ) |
testContentTypeEvaluatorTypeAndVersionMatch ( ) { ddf . catalog . pubsub . PredicateTest . LOGGER . debug ( "**************************<sp>START:<sp>testContentTypeEvaluator_TypeAndVersion_Match()<sp>***********************" ) ; ddf . catalog . pubsub . predicate . ContentTypePredicate predicate = new ddf . catalog . p... | org . junit . Assert . assertTrue ( status ) |
pushPullTest ( ) { int port = org . zeromq . Utils . findOpenPort ( ) ; try ( final org . zeromq . ZSocket pull = new org . zeromq . ZSocket ( ZMQ . PULL ) ; final org . zeromq . ZSocket push = new org . zeromq . ZSocket ( ZMQ . PUSH ) ) { pull . bind ( ( "tcp://*:" + port ) ) ; push . connect ( ( "tcp://127.0.0.1:" + ... | org . junit . Assert . assertEquals ( expected , actual ) |
testMD5HashForBytesWritableKey ( ) { org . apache . hadoop . io . BytesWritable key = new org . apache . hadoop . io . BytesWritable ( "abc123" . getBytes ( ) ) ; org . apache . hadoop . io . MD5Hash md5HashKey1 = co . nubetech . hiho . dedup . HashUtility . getMD5Hash ( key ) ; org . apache . hadoop . io . MD5Hash md5... | org . junit . Assert . assertEquals ( md5HashKey1 , md5HashKey2 ) |
testDumpWithDateAttr ( ) { java . lang . String input = "son.birthDate<sp>==<sp>\"01-jan-2000\"" ; java . lang . String expected = "son.birthDate<sp>==<sp>org.drools.util.DateUtils.parseDate(<sp>\"01-jan-2000\"<sp>)" ; org . drools . compiler . lang . descr . ConstraintConnectiveDescr descr = parse ( input ) ; java . l... | org . junit . Assert . assertEquals ( expected , result ) |
testSpdySynReplyFrame ( ) { short type = 2 ; byte flags = 0 ; int length = 4 ; int streamId = ( ( io . netty . handler . codec . spdy . SpdyFrameDecoderTest . RANDOM . nextInt ( ) ) & 2147483647 ) | 1 ; io . netty . buffer . ByteBuf buf = io . netty . buffer . Unpooled . buffer ( ( ( io . netty . handler . codec . spdy... | org . junit . Assert . assertFalse ( buf . isReadable ( ) ) |
testDynamicQueryByProjectionMissing ( ) { com . liferay . portal . kernel . dao . orm . DynamicQuery dynamicQuery = com . liferay . portal . kernel . dao . orm . DynamicQueryFactoryUtil . forClass ( com . liferay . portal . workflow . kaleo . model . KaleoTaskForm . class , _dynamicQueryClassLoader ) ; dynamicQuery . s... | org . junit . Assert . assertEquals ( 0 , result . size ( ) ) |
environmentShouldNotBeSelectedWhenEnvironmentListIsEmpty ( ) { when ( environmentUtil . getEnvironmentsByProjectType ( tree , org . eclipse . che . ide . ext . runner . client . tabs . templates . TemplatesPresenterTest . SOME_TEXT , org . eclipse . che . ide . ext . runner . client . tabs . templates . SYSTEM ) ) . th... | org . junit . Assert . assertThat ( presenter . addEnvironments ( tree , org . eclipse . che . ide . ext . runner . client . tabs . templates . SYSTEM ) . isEmpty ( ) , org . hamcrest . CoreMatchers . is ( true ) ) |
testGetDefaultImplOnHeadless ( ) { org . robovm . pods . InterfaceTest4 impl = org . robovm . pods . Platform . getPlatform ( ) . getInstance ( org . robovm . pods . InterfaceTest4 . class ) ; "<AssertPlaceHolder>" ; } getPlatform ( ) { return org . robovm . pods . Platform . PLATFORM ; } | org . junit . Assert . assertNotNull ( impl ) |
setSatelliteId ( ) { empty . setSatelliteId ( "07" ) ; "<AssertPlaceHolder>" ; } getSatelliteId ( ) { return getStringValue ( net . sf . marineapi . nmea . parser . GBSParser . SATELLITE_ID ) ; } | org . junit . Assert . assertEquals ( "07" , empty . getSatelliteId ( ) ) |
shouldFailIfResourceFileCouldNotBeFoundAsRelativeFile ( ) { java . io . File file = new java . io . File ( "/this/resource/file/does/not/exist" ) ; "<AssertPlaceHolder>" ; nodeTypeManager . registerNodeTypes ( file , true ) ; } | org . junit . Assert . assertThat ( file . exists ( ) , org . hamcrest . CoreMatchers . is ( false ) ) |
testSetSchemaThatExists ( ) { org . netbeans . lib . ddl . impl . DriverSpecification ds = new org . netbeans . lib . ddl . impl . DriverSpecification ( null ) ; ds . setMetaData ( new org . netbeans . modules . db . explorer . DatabaseConnectorTest . CustomMetaData ( "A" , "B" , "C" ) ) ; ds . setSchema ( "B" ) ; "<As... | org . junit . Assert . assertEquals ( "B" , ds . getSchema ( ) ) |
testGetVersion ( ) { "<AssertPlaceHolder>" ; } getVersion ( ) { com . sapher . youtubedl . YoutubeDLRequest request = new com . sapher . youtubedl . YoutubeDLRequest ( ) ; request . setOption ( "version" ) ; return com . sapher . youtubedl . YoutubeDL . execute ( request ) . getOut ( ) ; } | org . junit . Assert . assertNotNull ( com . sapher . youtubedl . YoutubeDL . getVersion ( ) ) |
testSharingAnionReaction ( ) { org . openscience . cdk . reaction . IReactionProcess type = new org . openscience . cdk . reaction . type . SharingAnionReaction ( ) ; "<AssertPlaceHolder>" ; } | org . junit . Assert . assertNotNull ( type ) |
testAddInvalidArrayChild ( ) { org . glassfish . hk2 . api . ServiceLocator locator = org . glassfish . hk2 . xml . test . utilities . Utilities . createLocator ( ) ; org . glassfish . hk2 . xml . api . XmlService xmlService = locator . getService ( org . glassfish . hk2 . xml . api . XmlService . class ) ; java . net ... | org . junit . Assert . assertEquals ( 2 , arrayChildren . length ) |
testAdminBypassesOverwrites ( ) { discord4j . core . object . util . PermissionSet base = discord4j . core . object . util . PermissionSet . of ( discord4j . core . util . SEND_MESSAGES , discord4j . core . util . ADMINISTRATOR ) ; java . util . List < discord4j . core . object . PermissionOverwrite > roleOverwrites = ... | org . junit . Assert . assertEquals ( expected , actual ) |
greedyTraverse_should_exhaust_alternate_paths ( ) { java . util . List < au . edu . wehi . idsv . debruijn . positional . KmerPathNode > input = au . edu . wehi . idsv . debruijn . positional . KmerPathNodePathTest . testgraph ( ) ; au . edu . wehi . idsv . debruijn . positional . KmerPathNodePath path = new au . edu .... | org . junit . Assert . assertFalse ( path . dfsNextChild ( ) ) |
stringValue ( ) { final org . jboss . msc . value . ImmediateValue < java . lang . String > immediateValue = new org . jboss . msc . value . ImmediateValue < java . lang . String > ( "someText" ) ; "<AssertPlaceHolder>" ; } getValue ( ) { synchronized ( this ) { if ( ( injector ) != null ) return injector . getValue ( ... | org . junit . Assert . assertEquals ( "someText" , immediateValue . getValue ( ) ) |
invokeAfterAllCompleteNullTest ( ) { org . threadly . test . concurrent . TestRunnable tr = new org . threadly . test . concurrent . TestRunnable ( ) ; org . threadly . concurrent . future . FutureUtils . invokeAfterAllComplete ( null , tr ) ; "<AssertPlaceHolder>" ; } ranOnce ( ) { return ( runCount . get ( ) ) == 1 ;... | org . junit . Assert . assertTrue ( tr . ranOnce ( ) ) |
testToShortestUnsignedByteArrayBigIntegerZero ( ) { byte [ ] exp = new byte [ ] { ( ( byte ) ( 45 ) ) , ( ( byte ) ( 0 ) ) } ; byte [ ] recv = de . persosim . simulator . utils . Utils . toShortestUnsignedByteArray ( 11520 ) ; "<AssertPlaceHolder>" ; } toShortestUnsignedByteArray ( int ) { byte [ ] array = de . persosi... | org . junit . Assert . assertArrayEquals ( exp , recv ) |
entry ( ) { io . vertx . ext . consul . ServiceEntry entry = new io . vertx . ext . consul . ServiceEntry ( ) . setChecks ( java . util . Arrays . asList ( new io . vertx . ext . consul . Check ( ) . setStatus ( CheckStatus . WARNING ) , new io . vertx . ext . consul . Check ( ) . setStatus ( CheckStatus . PASSING ) ) ... | org . junit . Assert . assertEquals ( entry . aggregatedStatus ( ) , CheckStatus . WARNING ) |
testJavadocAfterOutOfBounds ( ) { java . lang . String javadocContentAfter = net . sourceforge . pmd . lang . java . ast . CommentUtil . javadocContentAfter ( "@param<sp>param1<sp>The<sp>Description\n" , Integer . MAX_VALUE ) ; "<AssertPlaceHolder>" ; } javadocContentAfter ( java . lang . String , int ) { if ( ( text =... | org . junit . Assert . assertNull ( javadocContentAfter ) |
testHasNoPatterns ( ) { com . facebook . buck . util . PatternsMatcher patternsMatcher = new com . facebook . buck . util . PatternsMatcher ( java . util . Collections . emptyList ( ) ) ; "<AssertPlaceHolder>" ; } hasPatterns ( ) { return hasPatterns ; } | org . junit . Assert . assertFalse ( patternsMatcher . hasPatterns ( ) ) |
test2 ( ) { java . lang . String text = "" ; org . apache . lucene . analysis . Analyzer analyzer = new com . github . lucenejapaneseanalyzer . japaneseanalyzer . GoSenAnalyzer ( ) ; org . apache . lucene . analysis . TokenStream ts = analyzer . tokenStream ( "content" , new java . io . StringReader ( text ) ) ; org . ... | org . junit . Assert . assertThat ( term , org . hamcrest . CoreMatchers . is ( "" ) ) |
testNormalizerStandardizeNotFitLabels ( ) { org . nd4j . linalg . dataset . NormalizerStandardize original = new org . nd4j . linalg . dataset . NormalizerStandardize ( org . nd4j . linalg . factory . Nd4j . create ( new double [ ] { 0.5 , 1.5 } ) . reshape ( 1 , ( - 1 ) ) , org . nd4j . linalg . factory . Nd4j . creat... | org . junit . Assert . assertEquals ( original , restored ) |
matches ( ) { final net . jadler . stubbing . HttpStub rule = new net . jadler . stubbing . HttpStub ( java . util . Arrays . < org . hamcrest . Matcher < ? super net . jadler . Request > > asList ( org . hamcrest . Matchers . anything ( ) , org . hamcrest . Matchers . not ( org . hamcrest . Matchers . anything ( ) ) ,... | org . junit . Assert . assertThat ( rule . matches ( mock ( net . jadler . Request . class ) ) , org . hamcrest . Matchers . is ( false ) ) |
importDapstom ( ) { org . eol . globi . data . StudyImporterForRegistry importer = createImporter ( ) ; importer . importData ( "millerse/Dapstrom-integrated-database-and-portal-for-fish-stomach-records" ) ; java . util . List < org . eol . globi . domain . StudyNode > allStudies = org . eol . globi . util . NodeUtil .... | org . junit . Assert . assertThat ( ( ( allStudies . size ( ) ) > 0 ) , org . hamcrest . core . Is . is ( true ) ) |
list_contains_any_apache_commons ( ) { boolean vehiclesContainYukon = org . apache . commons . collections . CollectionUtils . exists ( vehicles , new org . apache . commons . collections . Predicate ( ) { public boolean evaluate ( java . lang . Object object ) { com . levelup . java . collections . ListContainsAny . V... | org . junit . Assert . assertTrue ( vehiclesContainYukon ) |
testUnpackDoubleOneNegative ( ) { final char one = 48128 ; final double r = com . jogamp . opengl . math . Binary16 . unpackDouble ( one ) ; System . out . println ( java . lang . String . format ( "0x%04x<sp>-><sp>%f" , ( ( int ) ( one ) ) , r ) ) ; "<AssertPlaceHolder>" ; } unpackDouble ( char ) { if ( com . jogamp .... | org . junit . Assert . assertEquals ( r , ( - 1.0 ) , 0.0 ) |
testFindNotificationsByTopicId ( ) { java . lang . String topicId = java . util . UUID . randomUUID ( ) . toString ( ) ; java . util . List < org . kaaproject . kaa . common . dto . NotificationDto > expectedList = new java . util . ArrayList ( ) ; expectedList . addAll ( generateNotifications ( topicId , null , null ,... | org . junit . Assert . assertEquals ( expectedList . size ( ) , found . size ( ) ) |
getPatients_shouldNotGetPatientsByEmptyQuery_SignatureNo2 ( ) { java . util . List < org . openmrs . Patient > patients = dao . getPatients ( "" , 0 , 11 ) ; "<AssertPlaceHolder>" ; } size ( ) { return getMemberships ( ) . stream ( ) . filter ( ( m ) -> ! ( m . getVoided ( ) ) ) . collect ( java . util . stream . Colle... | org . junit . Assert . assertEquals ( 0 , patients . size ( ) ) |
testWithEnv ( ) { final java . lang . String env1 = "env1" ; final java . lang . String env2 = "env2" ; final org . apache . oozie . fluentjob . api . action . StreamingBuilder builder = new org . apache . oozie . fluentjob . api . action . StreamingBuilder ( ) ; builder . withEnv ( env1 ) . withEnv ( env2 ) ; final or... | org . junit . Assert . assertEquals ( java . util . Arrays . asList ( env1 , env2 ) , streaming . getEnvs ( ) ) |
testGuavaShadedPath ( ) { java . lang . Class . forName ( "dlshade.com.google.common.cache.Cache" ) ; "<AssertPlaceHolder>" ; } | org . junit . Assert . assertTrue ( true ) |
testParseCDADocument ( ) { java . io . InputStream is = getClass ( ) . getResourceAsStream ( "/builders/content/document/SampleCDADocument.xml" ) ; org . openhealthtools . mdht . uml . cda . ClinicalDocument clinicalDocument = parser . parse ( is ) ; java . lang . String result = renderer . render ( clinicalDocument , ... | org . junit . Assert . assertTrue ( ( ( result . length ( ) ) > 0 ) ) |
givenMatchersAreEmpty_whenGetMostSpecificMatch_thenReturnsAbsent ( ) { java . util . List < com . brandwatch . robots . matching . Matchable < java . lang . String > > matchers = java . util . Collections . emptyList ( ) ; java . lang . String target = "abc" ; com . google . common . base . Optional < com . brandwatch ... | org . junit . Assert . assertFalse ( result . isPresent ( ) ) |
testIntObj ( ) { java . lang . Class < com . j256 . ormlite . field . types . IntegerObjectTypeTest . LocalIntObj > clazz = com . j256 . ormlite . field . types . IntegerObjectTypeTest . LocalIntObj . class ; com . j256 . ormlite . dao . Dao < com . j256 . ormlite . field . types . IntegerObjectTypeTest . LocalIntObj ,... | org . junit . Assert . assertEquals ( 1 , dao . create ( foo ) ) |
testExamRowSets ( ) { int code = 0 ; try { code = _setupTestExamRow ( true ) ; _checkExamRowIntoDb ( code ) ; } catch ( java . lang . Exception e ) { e . printStackTrace ( ) ; "<AssertPlaceHolder>" ; } return ; } _checkExamRowIntoDb ( int ) { org . isf . exa . model . ExamRow foundExamRow ; foundExamRow = ( ( org . isf... | org . junit . Assert . assertEquals ( true , false ) |
testAttachesNoRelayoutListenerWithoutAutoLayout ( ) { com . eclipsesource . tabris . passepartout . FluidGridLayout layout = new com . eclipsesource . tabris . passepartout . FluidGridLayout ( new com . eclipsesource . tabris . passepartout . FluidGridConfiguration ( LayoutMode . NONE , 100 , 200 ) ) ; layout . layout ... | org . junit . Assert . assertEquals ( listenerCount , 0 ) |
moveDirectoryToAnotherSystem_theSourceDirectoryShouldNotExist ( ) { initRepository ( ) ; writeToCache ( "/source/file.txt" ) ; commitToMaster ( ) ; initGitFileSystem ( ) ; com . beijunyi . parallelgit . filesystem . GitPath source = gfs . getPath ( "/source" ) ; com . beijunyi . parallelgit . filesystem . GitPath targe... | org . junit . Assert . assertFalse ( java . nio . file . Files . exists ( source ) ) |
shiftbug002 ( ) { com . googlecode . javaewah32 . EWAHCompressedBitmap32 bm1 = com . googlecode . javaewah32 . EWAHCompressedBitmap32 . bitmapOf ( 10 , 11 , 12 , 13 , 31 ) ; com . googlecode . javaewah32 . EWAHCompressedBitmap32 bm2 = bm1 . shift ( 1 ) ; com . googlecode . javaewah32 . EWAHCompressedBitmap32 bm3 = bm1 ... | org . junit . Assert . assertEquals ( bm3 , bm4 ) |
factsBothNull ( ) { org . candlepin . model . Consumer first = new org . candlepin . model . Consumer ( ) ; first . setFacts ( null ) ; org . candlepin . model . Consumer second = new org . candlepin . model . Consumer ( ) ; second . setFacts ( null ) ; "<AssertPlaceHolder>" ; } factsAreEqual ( java . util . Map ) { if... | org . junit . Assert . assertTrue ( first . factsAreEqual ( second . getFacts ( ) ) ) |
testHashCode ( ) { System . out . println ( "hashCode" ) ; edu . harvard . iq . dataverse . authorization . users . AuthenticatedUser instance = new edu . harvard . iq . dataverse . authorization . users . AuthenticatedUser ( ) ; int expResult = 0 ; int result = instance . hashCode ( ) ; "<AssertPlaceHolder>" ; } hashC... | org . junit . Assert . assertEquals ( expResult , result ) |
testNormal ( ) { org . apache . servicecomb . provider . springmvc . reference . async . CseAsyncClientHttpRequest request = new org . apache . servicecomb . provider . springmvc . reference . async . CseAsyncClientHttpRequest ( ) ; org . apache . servicecomb . provider . springmvc . reference . async . CseAsyncRequest... | org . junit . Assert . assertEquals ( null , request . getContext ( ) ) |
timestampPartitionsOnTwoDays ( ) { net . time4j . range . DayPartitionRule rule = new net . time4j . range . DayPartitionBuilder ( ) . addWeekdayRule ( net . time4j . range . THURSDAY , net . time4j . range . ClockInterval . between ( net . time4j . PlainTime . of ( 9 , 0 ) , net . time4j . PlainTime . of ( 12 , 30 ) )... | org . junit . Assert . assertThat ( intervals , org . hamcrest . CoreMatchers . is ( expected ) ) |
testSchemaLoading ( ) { java . net . URL schemaUrl = java . lang . Thread . currentThread ( ) . getContextClassLoader ( ) . getResource ( "configuration/manager/complexFieldsDeltaSchema.json" ) ; final org . apache . avro . Schema schema = new org . apache . avro . Schema . Parser ( ) . parse ( new java . io . File ( s... | org . junit . Assert . assertArrayEquals ( rawBuffer , buffer . array ( ) ) |
testEvalReturnArrayStrings ( ) { actual . add ( connection . eval ( "return<sp>{KEYS[1],ARGV[1]}" , ReturnType . MULTI , 1 , "foo" , "bar" ) ) ; java . util . List < byte [ ] > result = ( ( java . util . List < byte [ ] > ) ( getResults ( ) . get ( 0 ) ) ) ; "<AssertPlaceHolder>" ; } get ( int ) { return this . buf . g... | org . junit . Assert . assertEquals ( java . util . Arrays . asList ( new java . lang . Object [ ] { "foo" , "bar" } ) , java . util . Arrays . asList ( new java . lang . Object [ ] { new java . lang . String ( result . get ( 0 ) ) , new java . lang . String ( result . get ( 1 ) ) } ) ) |
isOrWithIndexWorking ( ) { if ( isBatoo ( ) ) { return ; } final java . lang . String query = "select<sp>r<sp>from<sp>RegularEntityTwo<sp>r<sp>" + ( ( ( ( "<sp>where<sp>r.id<sp>in<sp>(<sp>" + "select<sp>sub.id<sp>from<sp>RegularEntityOne<sp>sub<sp>where<sp>(" ) + "(sub.stringAttribute<sp>=<sp>'Just<sp>a<sp>String<sp>02... | org . junit . Assert . assertTrue ( ( ( resultFromJPQL . size ( ) ) > 0 ) ) |
countPendingReportsShouldFilterByForum ( ) { new net . jforum . util . JDBCLoader ( this . session ( ) ) . run ( "/postreport/countPendingReports.sql" ) ; net . jforum . repository . PostReportRepository dao = this . newDAO ( ) ; "<AssertPlaceHolder>" ; } countPendingReports ( int [ ] ) { return this . countTotalReport... | org . junit . Assert . assertEquals ( 1 , dao . countPendingReports ( 1 ) ) |
testMyBinarySearchNotFound ( ) { System . out . println ( "binarySearch" ) ; int [ ] index = new int [ ] { 10 , 13 , 15 , 17 , 19 } ; int key = 16 ; int begin = 0 ; int end = 5 ; int expResult = - 4 ; int result = org . genemania . engine . matricks . Utils . myBinarySearch ( index , key , begin , end ) ; "<AssertPlace... | org . junit . Assert . assertEquals ( expResult , result ) |
testBuildPkgNameRootServicePathEncoding ( ) { System . out . println ( ( ( ( ( getTestTraceHead ( "[NGSICKANSink.buildPkgName]" ) ) + "-<sp>FAIL<sp>-<sp>There<sp>was<sp>some<sp>problem<sp>when<sp>building<sp>the<sp>DB<sp>name" 0 ) + "-<sp>FAIL<sp>-<sp>There<sp>was<sp>some<sp>problem<sp>when<sp>building<sp>the<sp>DB<sp>... | org . junit . Assert . assertEquals ( expectedPkgName , builtPkgName ) |
testCreateComplexJobTrigger1 ( ) { "<AssertPlaceHolder>" ; } createComplexJobTrigger ( org . pentaho . platform . plugin . services . importexport . exportManifest . bindings . ComplexJobTrigger ) { return new javax . xml . bind . JAXBElement < org . pentaho . platform . plugin . services . importexport . exportManifes... | org . junit . Assert . assertNotNull ( factory . createComplexJobTrigger ( mock ( org . pentaho . platform . plugin . services . importexport . exportManifest . bindings . ComplexJobTrigger . class ) ) ) |
testCanConnectToTargetWithLoop1 ( ) { try { org . talend . core . model . components . IComponent component = org . talend . core . ui . component . ComponentsFactoryProvider . getInstance ( ) . get ( "tJava" , ComponentCategory . CATEGORY_4_DI . getName ( ) ) ; org . talend . designer . core . ui . editor . nodes . No... | org . junit . Assert . assertTrue ( ( ! canConnect ) ) |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.