input
stringlengths
28
18.7k
output
stringlengths
39
1.69k
stringToKeyUpSetsMaxLength ( ) { s . max ( 20 ) ; binder . bind ( s ) . toKeyUp ( box ) ; "<AssertPlaceHolder>" ; } getMaxLength ( ) { return maxLength ; }
org . junit . Assert . assertThat ( box . getMaxLength ( ) , org . hamcrest . CoreMatchers . is ( 20 ) )
testModifySubscriptionConcurrency_ParameterDeleted ( ) { final org . oscm . subscriptionservice . bean . VOSubscription sub = createNewSubscription ( ) ; org . oscm . subscriptionservice . bean . VOService voService = runTX ( new java . util . concurrent . Callable < org . oscm . subscriptionservice . bean . VOService ...
org . junit . Assert . assertEquals ( 1 , voService . getParameters ( ) . size ( ) )
testGroupTimeSeriesAggMinClient ( ) { try { java . util . List < org . apache . eagle . query . aggregate . raw . GroupbyKeyValue > result = client . aggregate ( table , ed , scan , java . util . Arrays . asList ( "cluster" , "datacenter" ) , java . util . Arrays . asList ( AggregateFunctionType . min ) , java . util ....
org . junit . Assert . assertNotNull ( result )
testQueryProxy ( ) { final com . fasterxml . jackson . databind . ObjectMapper jsonMapper = org . apache . druid . segment . TestHelper . makeJsonMapper ( ) ; final org . apache . druid . query . timeseries . TimeseriesQuery query = org . apache . druid . query . Druids . newTimeseriesQueryBuilder ( ) . dataSource ( "f...
org . junit . Assert . assertEquals ( 1 , didService . get ( ) )
testCondMapping1 ( ) { org . nd4j . linalg . factory . Nd4j . create ( 1 ) ; lombok . val tg = org . nd4j . imports . graphmapper . tf . TFGraphMapper . getInstance ( ) . importGraph ( new org . nd4j . linalg . io . ClassPathResource ( "tf_graphs/examples/simpleif_0/frozen_model.pb" ) . getInputStream ( ) ) ; "<AssertP...
org . junit . Assert . assertNotNull ( tg )
getForNonExisitingKeyReturnsEmptySet ( ) { io . joynr . util . MultiMap < java . lang . String , java . lang . String > multiMap = new io . joynr . util . MultiMap ( ) ; final java . lang . String key = "key" ; java . util . Set < java . lang . String > values = multiMap . get ( key ) ; "<AssertPlaceHolder>" ; } isEmpt...
org . junit . Assert . assertTrue ( values . isEmpty ( ) )
test130GetMapEndpointExtraParamsEndsWithAmp ( ) { java . io . InputStream is = org . deegree . protocol . wms . client . WMSClientTest . class . getResourceAsStream ( "wms130-capabilities-getmap-endpoint-extraparams-amp.xml" ) ; org . deegree . protocol . wms . client . WMSClient client = new org . deegree . protocol ....
org . junit . Assert . assertNotNull ( response )
testValidVisibilityTimeout ( ) { runner . setProperty ( AzureStorageUtils . ACCOUNT_NAME , "dummy-storage" ) ; runner . setProperty ( AzureStorageUtils . ACCOUNT_KEY , "dummy-key" ) ; runner . setProperty ( GetAzureQueueStorage . QUEUE , "dummyqueue" ) ; runner . setProperty ( GetAzureQueueStorage . BATCH_SIZE , "10" )...
org . junit . Assert . assertEquals ( 0 , results . size ( ) )
testSendNotificationWithAppKeyWithSpecialCharacter14 ( ) { int erroCode = ErrorCodeEnum . NOERROR . value ( ) ; java . lang . String msgTitle = "jpush" ; java . lang . String msgContent = "jpusch()" ; cn . jpush . api . MessageResult result = jpush . sendNotificationWithAppKey ( sendNo , msgTitle , msgContent ) ; "<Ass...
org . junit . Assert . assertEquals ( erroCode , result . getErrcode ( ) )
hashCodeA ( ) { annis . model . TestDataObject . A a = new annis . model . TestDataObject . A ( annis . model . TestDataObject . S1 ) ; int expected = new org . apache . commons . lang3 . builder . HashCodeBuilder ( ) . append ( annis . model . TestDataObject . S1 ) . toHashCode ( ) ; "<AssertPlaceHolder>" ; } hashCode...
org . junit . Assert . assertThat ( a . hashCode ( ) , org . hamcrest . Matchers . is ( expected ) )
testRestartVDB ( ) { org . teiid . runtime . TestEmbeddedServerAdmin . admin . restartVDB ( "AdminAPITestVDB" , 1 , "TestModel" ) ; "<AssertPlaceHolder>" ; } getVDB ( java . lang . String , java . lang . String ) { return this . embeddedServer . repo . getVDB ( vdbName , vdbVersion ) ; }
org . junit . Assert . assertNotNull ( org . teiid . runtime . TestEmbeddedServerAdmin . admin . getVDB ( "AdminAPITestVDB" , 1 ) )
database_is_operation_should_compare_database ( ) { com . lordofthejars . nosqlunit . couchdb . CouchDbOperation couchDbOperation = couchDbOperation ( ) ; couchDbOperation . insert ( new java . io . ByteArrayInputStream ( com . lordofthejars . nosqlunit . couchdb . integration . WhenManagedCouchDbOperationsAreRequired ...
org . junit . Assert . assertThat ( result , org . hamcrest . Matchers . is ( true ) )
checkCartForItem ( ) { try { this . cart . addItem ( this . title , this . persistentId ) ; } catch ( java . lang . Exception e ) { org . junit . Assert . fail ( "Item<sp>not<sp>added." ) ; return ; } "<AssertPlaceHolder>" ; } checkCartForItem ( java . lang . String , java . lang . String ) { return contents . contains...
org . junit . Assert . assertTrue ( this . cart . checkCartForItem ( this . title , this . persistentId ) )
testCommitAfterPersist ( ) { final org . apache . flink . core . fs . RecoverableWriter writer = getRecoverableWriter ( ) ; final org . apache . flink . core . fs . Path path = new org . apache . flink . core . fs . Path ( basePathForTest , "part-0" ) ; final org . apache . flink . core . fs . RecoverableFsDataOutputSt...
org . junit . Assert . assertEquals ( ( ( org . apache . flink . fs . s3hadoop . HadoopS3RecoverableWriterITCase . testData1 ) + ( org . apache . flink . fs . s3hadoop . HadoopS3RecoverableWriterITCase . testData2 ) ) , getContentsOfFile ( path ) )
testRemoveToken ( ) { oAuthTokenCacheService . removeToken ( "access" ) ; org . scribe . model . Token retrievedToken = oAuthTokenCacheService . retrieveToken ( "access" ) ; "<AssertPlaceHolder>" ; } retrieveToken ( java . lang . String ) { if ( oauthToken == null ) { return null ; } return tokenCache . getIfPresent ( ...
org . junit . Assert . assertNull ( retrievedToken )
testConvertDynamicForms ( ) { org . apache . zeppelin . display . GUI gui = new org . apache . zeppelin . display . GUI ( ) ; org . apache . zeppelin . display . ui . OptionInput [ ] paramOptions = new OptionInput . ParamOption [ ] { new org . apache . zeppelin . display . ui . OptionInput . ParamOption ( "default" 2 ,...
org . junit . Assert . assertArrayEquals ( expected . values ( ) . toArray ( ) , gui . getForms ( ) . values ( ) . toArray ( ) )
testTree ( ) { com . tinkerpop . pipes . util . structures . Tree < org . jglue . totorom . TVertex > tree = graph . v ( 1 ) . out ( ) . out ( ) . tree ( ) . cap ( ) ; "<AssertPlaceHolder>" ; } get ( java . lang . Object ) { return removeFrame ( delegate . get ( makeFrame ( key ) ) ) ; }
org . junit . Assert . assertEquals ( 1 , tree . get ( graph . v ( 1 ) . next ( ) ) . size ( ) )
testSetEventDataForPoolSetsEventDataJson ( ) { org . candlepin . model . Pool pool = mock ( org . candlepin . model . Pool . class ) ; eventBuilder = new org . candlepin . audit . EventBuilder ( factory , Event . Target . POOL , Event . Type . CREATED ) ; when ( pool . getSubscriptionId ( ) ) . thenReturn ( "test-subsc...
org . junit . Assert . assertEquals ( expectedEventData , event . getEventData ( ) )
testApiKey ( ) { org . jinstagram . auth . InstagramAuthService fixture = new org . jinstagram . auth . InstagramAuthService ( ) ; fixture . apiSecret ( "" ) ; fixture . callback ( "" ) ; fixture . scope ( "" ) ; fixture . proxy ( new java . net . Proxy ( java . net . Proxy . Type . DIRECT , new java . net . InetSocket...
org . junit . Assert . assertNotNull ( result )
old_style_not_tag_predicate_is_handled ( ) { gherkin . events . PickleEvent pickleEvent = createPickleWithTags ( asList ( com . github . timm . cucumber . runtime . TagPredicateTest . BAR_TAG ) ) ; com . github . timm . cucumber . runtime . TagPredicate predicate = new com . github . timm . cucumber . runtime . TagPred...
org . junit . Assert . assertTrue ( predicate . apply ( pickleEvent ) )
testNoNullElementsArrayEmptyParameter ( ) { java . lang . Object [ ] array = new java . lang . Object [ 0 ] ; "<AssertPlaceHolder>" ; } noNullElements ( T [ ] , java . lang . String ) { com . twelvemonkeys . lang . Validate . noNullElements ( ( pParameter == null ? null : java . util . Arrays . asList ( pParameter ) ) ...
org . junit . Assert . assertSame ( array , com . twelvemonkeys . lang . Validate . noNullElements ( array , "foo" ) )
method_findDependentLibrariesAndTypesForAType__case__three_level__parent__grandParent ( ) { java . util . Map < java . lang . String , java . util . Set < java . lang . String > > dependentLibAndTypeMap = null ; org . ebayopensource . turmeric . tools . library . codegen . TypeLibraryCodeGenContext ctx = createTypeLibr...
org . junit . Assert . assertEquals ( 2 , dependentLibAndTypeMap . size ( ) )
testSplliter3 ( ) { de . tudarmstadt . ukp . dkpro . core . decompounding . splitter . JWordSplitterAlgorithm splitter = new de . tudarmstadt . ukp . dkpro . core . decompounding . splitter . JWordSplitterAlgorithm ( ) ; final java . io . File dictFile = de . tudarmstadt . ukp . dkpro . core . api . resources . Resourc...
org . junit . Assert . assertThat ( result . size ( ) , org . hamcrest . CoreMatchers . is ( 1 ) )
file ( ) { java . lang . String data = "one<sp>two<sp>three" ; java . io . File file = folder . newFile ( ) ; java . io . Writer writer = new java . io . OutputStreamWriter ( new java . io . FileOutputStream ( file ) , "UTF-8" ) ; writer . write ( data ) ; writer . close ( ) ; ezvcard . util . Utf8Reader reader = new e...
org . junit . Assert . assertEquals ( expected , actual )
whenTwoShipmentsHaveTheSameId_theyReferencesShouldBeUnEqual ( ) { jsprit . core . problem . job . Shipment one = Shipment . Builder . newInstance ( "s" ) . addSizeDimension ( 0 , 10 ) . setPickupLocation ( Location . Builder . newInstance ( ) . setId ( "foo" ) . build ( ) ) . setDeliveryLocation ( jsprit . core . util ...
org . junit . Assert . assertTrue ( ( one != two ) )
testTransactieCreatieMetReedsAanwezigeBusinessTransactieInContext ( ) { context . setBusinessTransactionStatus ( org . mockito . Mockito . mock ( org . springframework . transaction . TransactionStatus . class ) ) ; stap . setTransactionTimeoutInSeconds ( 3L ) ; boolean result = stap . voerVerwerkingsStapUitVoorBericht...
org . junit . Assert . assertFalse ( result )
backgroundExpirationIsDisabledByDefault ( ) { "<AssertPlaceHolder>" ; } isBackgroundExpirationEnabled ( ) { return backgroundExpirationEnabled ; }
org . junit . Assert . assertFalse ( config . isBackgroundExpirationEnabled ( ) )
testOperationalOutgoingPooledBuffers ( ) { "<AssertPlaceHolder>" ; } operationalOutgoingPooledBuffers ( ) { final int pooledBuffers = getInteger ( "cluster.op.outgoing.pooled.buffers" , 20 ) ; if ( pooledBuffers == 0 ) { throw new java . lang . IllegalStateException ( "Must<sp>assign<sp>an<sp>operational<sp>(op)<sp>poo...
org . junit . Assert . assertEquals ( 20 , properties . operationalOutgoingPooledBuffers ( ) )
testShouldRetrieveNegativeFloatValueWithLessCondition ( ) { org . apache . hadoop . hbase . client . HBaseAdmin admin = org . apache . hadoop . hbase . index . coprocessor . regionserver . TestMultipleIndicesInScan . UTIL . getHBaseAdmin ( ) ; org . apache . hadoop . hbase . HBaseTestingUtility . getZooKeeperWatcher ( ...
org . junit . Assert . assertTrue ( ( ( testRes . size ( ) ) == 2 ) )
isSendMail_TrueSet ( ) { org . oscm . identityservice . control . SendMailControl . setSendMail ( Boolean . TRUE ) ; "<AssertPlaceHolder>" ; } isSendMail ( ) { java . lang . Boolean b = org . oscm . identityservice . control . SendMailControl . SEND_MAIL . get ( ) ; if ( b != null ) { return b . booleanValue ( ) ; } re...
org . junit . Assert . assertTrue ( org . oscm . identityservice . control . SendMailControl . isSendMail ( ) )
iterator ( ) { instance . add ( new edu . illinois . library . cantaloupe . operation . CropByPixels ( 10 , 10 , 10 , 10 ) ) ; instance . add ( new edu . illinois . library . cantaloupe . operation . Scale ( 0.5 ) ) ; int count = 0 ; java . util . Iterator < edu . illinois . library . cantaloupe . operation . Operation...
org . junit . Assert . assertEquals ( 2 , count )
testSetRange ( ) { point . setRange ( brv2 ) ; "<AssertPlaceHolder>" ; verify ( eventHelper , times ( 1 ) ) . addEventPayload ( eq ( continuousMapping ) , any ( org . cytoscape . view . vizmap . events . VisualMappingFunctionChangeRecord . class ) , eq ( org . cytoscape . view . vizmap . events . VisualMappingFunctionC...
org . junit . Assert . assertEquals ( brv2 , point . getRange ( ) )
view_beforeLeave_preventNavigation ( ) { com . vaadin . navigator . Navigator navigator = createNavigatorWithState ( "foo" ) ; com . vaadin . navigator . View view1 = new com . vaadin . navigator . View ( ) { @ com . vaadin . tests . server . navigator . Override public void enter ( com . vaadin . navigator . ViewChang...
org . junit . Assert . assertEquals ( "view1" , navigator . getState ( ) )
testHandlerWritesDetailMessageToBody ( ) { final java . lang . String detailMessage = "detail<sp>message" ; final io . vertx . core . http . HttpServerRequest request = mock ( io . vertx . core . http . HttpServerRequest . class , Mockito . RETURNS_MOCKS ) ; final io . vertx . core . http . HttpServerResponse response ...
org . junit . Assert . assertThat ( bufferCaptor . getValue ( ) . toString ( ) , org . hamcrest . CoreMatchers . is ( detailMessage ) )
testBatchedUpdate ( ) { org . teiid . translator . cassandra . CassandraExecutionFactory cef = new org . teiid . translator . cassandra . CassandraExecutionFactory ( ) ; java . lang . String input = "insert<sp>into<sp>pm1.g1<sp>(e1)<sp>values<sp>('a')" ; org . teiid . cdk . api . TranslationUtility util = org . teiid ....
org . junit . Assert . assertArrayEquals ( new int [ ] { 2 } , execution . getUpdateCounts ( ) )
objectValue ( ) { final org . jboss . msc . value . Value < java . lang . Class < ? extends java . lang . Object > > value = new org . jboss . msc . value . ClassOfValue < java . lang . Object > ( new org . jboss . msc . value . ImmediateValue < java . lang . Object > ( new java . lang . Object ( ) ) ) ; "<AssertPlaceH...
org . junit . Assert . assertSame ( java . lang . Object . class , value . getValue ( ) )
testMaskUnsignedShortToIntShort_LeadingZeroBytes ( ) { int actual = de . persosim . simulator . utils . Utils . maskUnsignedShortToInt ( ( ( short ) ( 2 ) ) ) ; int expected = 2 ; "<AssertPlaceHolder>" ; } maskUnsignedShortToInt ( short ) { return ( ( int ) ( shortValue & ( de . persosim . simulator . utils . Utils . M...
org . junit . Assert . assertEquals ( expected , actual )
testProxyingFactory ( ) { org . jboss . capedwarf . jpa . ProxyingFactory factory = new org . jboss . capedwarf . jpa . ProxyingEntityManagerFactory ( new org . jboss . test . capedwarf . jpa . support . MockEMF ( ) ) ; org . jboss . test . capedwarf . jpa . support . Person person = new org . jboss . test . capedwarf ...
org . junit . Assert . assertSame ( 1L , food . getPersonId ( ) )
testGetParameterList ( ) { org . openscience . cdk . reaction . ReactionEngine engine = new org . openscience . cdk . reaction . type . AdductionProtonLPReaction ( ) ; "<AssertPlaceHolder>" ; } getParameterList ( ) { return paramsMap2 ; }
org . junit . Assert . assertNotNull ( engine . getParameterList ( ) )
testConstructors ( ) { gov . sandia . cognition . learning . function . scalar . TanHFunction instance = new gov . sandia . cognition . learning . function . scalar . TanHFunction ( ) ; "<AssertPlaceHolder>" ; }
org . junit . Assert . assertNotNull ( instance )
isOverwrittenBySubTypeOrResourceFunctionWhenResourceTypeFunctionIsOverwrittenByResourceTypeFunctionShouldReturnTrue ( ) { ch . puzzle . itc . mobiliar . business . function . entity . AmwFunctionEntity function1 = new ch . puzzle . itc . mobiliar . business . function . entity . AmwFunctionEntityBuilder ( "name" , 2 ) ...
org . junit . Assert . assertTrue ( isOverwritten )
shouldGetAndSetNestedMapPairUsingArraySyntax ( ) { org . apache . ibatis . domain . misc . RichType rich = new org . apache . ibatis . domain . misc . RichType ( ) ; org . apache . ibatis . reflection . MetaObject meta = org . apache . ibatis . reflection . SystemMetaObject . forObject ( rich ) ; meta . setValue ( "ric...
org . junit . Assert . assertEquals ( "foo" , meta . getValue ( "richType.richMap[key]" ) )
testElseIfAllExprFalse ( ) { java . lang . String template = "<if(name)>fail<elseif(id)>fail<else>works<endif>" ; org . stringtemplate . v4 . ST st = new org . stringtemplate . v4 . ST ( template ) ; java . lang . String expected = "works" ; java . lang . String result = st . render ( ) ; "<AssertPlaceHolder>" ; } rend...
org . junit . Assert . assertEquals ( expected , result )
testFetchByPrimaryKeyMissing ( ) { long pk = com . liferay . portal . kernel . test . util . RandomTestUtil . nextLong ( ) ; com . liferay . portal . kernel . model . Website missingWebsite = _persistence . fetchByPrimaryKey ( pk ) ; "<AssertPlaceHolder>" ; } fetchByPrimaryKey ( long ) { return com . liferay . adaptive...
org . junit . Assert . assertNull ( missingWebsite )
neverExpires ( ) { org . terracotta . lease . service . monitor . ReconnectionLease lease = new org . terracotta . lease . service . monitor . ReconnectionLease ( ) ; "<AssertPlaceHolder>" ; } isExpired ( long ) { return false ; }
org . junit . Assert . assertFalse ( lease . isExpired ( 0L ) )
getCount_withDefaultNamespace_shouldReturnOneEntity ( ) { createEntityInDatastore ( com . arcbees . gaestudio . server . service . visualizer . EntitiesServiceImplTest . KIND_NAME , com . arcbees . gaestudio . server . service . visualizer . EntitiesServiceImplTest . PROPERTY_NAME , com . arcbees . gaestudio . server ....
org . junit . Assert . assertEquals ( 1L , entityCount )
surroundInRange ( ) { final float [ ] array = new float [ ] { 225.32F , 799.2F , 146.11F , 332.74F , 55.0F , 139.0F , 1010.0F } ; final float [ ] array2 = new float [ ] { 225.32F , 199.8F , 146.11F , 166.37F , 220.0F , 139.0F , 189.375F } ; final float [ ] result = org . toilelibre . libe . soundtransform . actions . f...
org . junit . Assert . assertArrayEquals ( result , array2 , 0 )
testForeach03 ( ) { java . lang . String source = "if<sp>($installedManifestsRef<sp>==<sp>$installedManifestsCur)<sp>{true;}else<sp>{var<sp>installedManifestsRefIds=[ref.getId()<sp>for<sp>each<sp>(ref<sp>in<sp>$installedManifestsRef)];" + ( ( "var<sp>installedManifestsCurIds=[cur.getId()<sp>for<sp>each<sp>(cur<sp>in<sp...
org . junit . Assert . assertEquals ( false , result )
testException ( ) { java . util . concurrent . atomic . AtomicInteger obj = new java . util . concurrent . atomic . AtomicInteger ( 0 ) ; try ( T wrapper = closeableFactory . makeCloseable ( obj , com . facebook . buck . util . CloseableWrapperTest :: closer ) ) { throw new java . lang . Exception ( "exception" ) ; } f...
org . junit . Assert . assertEquals ( 1 , obj . get ( ) )
testNewlyCreatedSchema ( ) { javax . jdo . PersistenceManager pm = org . zoodb . test . testutil . TestTools . openPM ( ) ; pm . currentTransaction ( ) . begin ( ) ; org . zoodb . jdo . ZooJdoHelper . schema ( pm ) . addClass ( org . zoodb . test . jdo . TestClass . class ) ; pm . currentTransaction ( ) . commit ( ) ; ...
org . junit . Assert . assertEquals ( 1 , n )
testMethods ( ) { java . lang . reflect . Method ofMethod = org . androidtransfuse . util . Providers . class . getDeclaredMethod ( Providers . OF_METHOD , java . lang . Object . class ) ; "<AssertPlaceHolder>" ; }
org . junit . Assert . assertNotNull ( ofMethod )
testRegisterComponentInstance ( ) { org . xwiki . component . embed . EmbeddableComponentManager ecm = new org . xwiki . component . embed . EmbeddableComponentManager ( ) ; org . xwiki . component . descriptor . DefaultComponentDescriptor < org . xwiki . component . embed . EmbeddableComponentManagerTest . Role > d1 =...
org . junit . Assert . assertSame ( instance , ecm . getInstance ( org . xwiki . component . embed . EmbeddableComponentManagerTest . Role . class ) )
test_amPm_shouldReturnPM_whenTimeBetween12and23 ( ) { java . util . Calendar calendar = org . openl . util . DateToolTest . createCalendar ( 15 , 6 , 2018 ) ; for ( int hour = 12 ; hour < 24 ; hour ++ ) { calendar . set ( Calendar . HOUR_OF_DAY , hour ) ; java . lang . String actual = org . openl . util . DateTool . am...
org . junit . Assert . assertEquals ( "PM" , actual )
testEmbedSameUnionPath ( ) { raptorContext . setAllowFullTableScan ( true ) ; raptorContext . setHint ( ( - 1 ) ) ; java . lang . String query = "Dep[@_oid=\"dep000\"]{@_oid}.(team[@_oid=\"Dep!dep000!team!team010\"].person[@_oid=\"Dep!dep000!team!team010!person!person011\"]<sp>&&<sp>team[@_oid=\"Dep!dep000!team!team010...
org . junit . Assert . assertEquals ( 1 , result . getEntities ( ) . size ( ) )
testFromRowWithGetters ( ) { org . apache . beam . sdk . schemas . SchemaRegistry registry = org . apache . beam . sdk . schemas . SchemaRegistry . createDefault ( ) ; org . apache . beam . sdk . schemas . utils . TestJavaBeans . SimpleBean bean = createSimple ( "string" ) ; org . apache . beam . sdk . values . Row row...
org . junit . Assert . assertSame ( bean , extracted )
testNullGetNetworkView ( ) { org . cytoscape . application . CyApplicationManager source = mock ( org . cytoscape . application . CyApplicationManager . class ) ; org . cytoscape . application . events . SetCurrentNetworkViewEvent e = new org . cytoscape . application . events . SetCurrentNetworkViewEvent ( source , nu...
org . junit . Assert . assertNull ( e . getNetworkView ( ) )
testGetServicePathForNamingGR ( ) { System . out . println ( ( ( getTestTraceHead ( "[NGSIEvent.getServicePathForNaming]" ) ) + "--------<sp>When<sp>grouping<sp>is<sp>enabled,<sp>the<sp>grouped<sp>service<sp>path<sp>is<sp>returned" ) ) ; java . util . HashMap < java . lang . String , java . lang . String > headers = ne...
org . junit . Assert . assertEquals ( groupedServicePath , event . getServicePathForNaming ( true , false ) )
invalidHexPortionInBeginning ( ) { java . lang . String changeId = "Change-Id:<sp>I9az336216f0bc1256073bff692c087cfebff8ct" ; org . eclipse . jface . text . hyperlink . IHyperlink [ ] links = connector . findHyperlinks ( repository , null , changeId , ( - 1 ) , 0 ) ; "<AssertPlaceHolder>" ; } findHyperlinks ( org . ecl...
org . junit . Assert . assertNull ( links )
testDDLFallBack ( ) { com . zendesk . maxwell . schema . ddl . ResolvedDatabaseAlter m = new com . zendesk . maxwell . schema . ddl . ResolvedDatabaseAlter ( "some_db" , "utf8" ) ; com . zendesk . maxwell . schema . ddl . DDLMap d = new com . zendesk . maxwell . schema . ddl . DDLMap ( m , 0L , "alter-sql" , null , nul...
org . junit . Assert . assertEquals ( p2 . kafkaPartition ( d2 , 15 ) , p . kafkaPartition ( d , 15 ) )
defeasibleEntailmentMultiActivation ( ) { org . kie . api . runtime . KieSession kSession = getSession ( "org/drools/compiler/beliefsystem/defeasible/defeat.drl" ) ; kSession . fireAllRules ( ) ; org . drools . core . common . TruthMaintenanceSystem tms = ( ( org . drools . core . common . NamedEntryPoint ) ( kSession ...
org . junit . Assert . assertEquals ( 3 , kSession . getObjects ( ) . size ( ) )
getUser_2 ( ) { com . agiletec . aps . system . services . user . UserDetails disabledUser = this . createMockUser ( "admin" , false , false , false ) ; when ( this . userManager . getUser ( "admin" ) ) . thenReturn ( disabledUser ) ; when ( this . authorizationManager . getUserAuthorizations ( "admin" ) ) . thenReturn...
org . junit . Assert . assertNull ( user )
selectById ( ) { com . hunt . model . entity . SysPermissionGroup pg = new com . hunt . model . entity . SysPermissionGroup ( ) ; pg . setName ( "test<sp>pg" ) ; pg . setDescription ( "desc" ) ; service . insertPermissionGroup ( pg ) ; com . hunt . model . entity . SysPermission p = new com . hunt . model . entity . Sy...
org . junit . Assert . assertTrue ( sysPermission . getName ( ) . equals ( "test" ) )
testAllUnassigned ( ) { init ( ) ; java . util . Map < org . apache . accumulo . core . dataImpl . KeyExtent , org . apache . accumulo . server . master . state . TServerInstance > assignments = new java . util . HashMap ( ) ; java . util . Map < org . apache . accumulo . core . dataImpl . KeyExtent , org . apache . ac...
org . junit . Assert . assertEquals ( 15 , assignments . size ( ) )
testEqualWithPartialMatchingValues ( ) { java . util . List < java . lang . String > tableHeaders = java . util . Arrays . asList ( new java . lang . String [ ] { "col1" , "col2" } ) ; java . util . List < java . lang . String > otherTableHeaders = java . util . Arrays . asList ( new java . lang . String [ ] { "col1" ,...
org . junit . Assert . assertFalse ( table . equals ( otherTable ) )
testProvideTwoSha256Hashes ( ) { at . favre . tools . apksigner . ui . Arg parsedArg = at . favre . tools . apksigner . ui . CLIParser . parse ( at . favre . tools . apksigner . ui . CLIParserTest . asArgArray ( ( ( "-" + ( CLIParser . ARG_APK_FILE ) ) + "./<sp>--verifySha256<sp>a18bc579adba6819a57a665cdf2b<sp>fe0b6f2a...
org . junit . Assert . assertEquals ( expectedArg , parsedArg )
testTargetPackageInfoExport ( ) { org . nuxeo . targetplatforms . api . TargetPackageInfo tpi = service . getTargetPackageInfo ( "nuxeo-dm-5.8" ) ; "<AssertPlaceHolder>" ; java . io . ByteArrayOutputStream out = new java . io . ByteArrayOutputStream ( ) ; org . nuxeo . targetplatforms . io . JSONExporter . exportToJson...
org . junit . Assert . assertNotNull ( tpi )
runTest ( ) { boolean result = checkNoError ( "Social_Forums_Reply_By_Id" ) ; "<AssertPlaceHolder>" ; } getNoErrorMsg ( ) { return noErrorMsg ; }
org . junit . Assert . assertTrue ( getNoErrorMsg ( ) , result )
testMinimumColumnCountOne ( ) { org . jdesktop . swingx . JXTable table = new org . jdesktop . swingx . JXTable ( 10 , 2 ) ; table . setColumnControlVisible ( true ) ; table . getColumnExt ( 0 ) . setVisible ( false ) ; "<AssertPlaceHolder>" ; } getColumnCount ( ) { return 4 ; }
org . junit . Assert . assertEquals ( 1 , table . getColumnCount ( ) )
testRollbackUpgradeWithNullSpec ( ) { "<AssertPlaceHolder>" ; } rollbackUpgrade ( com . vmware . vrack . hms . common . rest . model . RollbackSpec ) { if ( rollbackSpec == null ) { com . vmware . vrack . hms . utils . UpgradeUtil . logger . debug ( "RollbackSpec<sp>is<sp>null." ) ; return false ; } final java . lang ....
org . junit . Assert . assertFalse ( com . vmware . vrack . hms . utils . UpgradeUtil . rollbackUpgrade ( null ) )
setVendorId_stringLength255_vendorIdIsSet ( ) { java . lang . String aString = aString ( 255 ) ; request . setVendorId ( aString ) ; "<AssertPlaceHolder>" ; } getVendorId ( ) { return vendorId ; }
org . junit . Assert . assertThat ( request . getVendorId ( ) , org . hamcrest . CoreMatchers . equalTo ( aString ) )
testOffsetForFacetExtendsWithInvalidPrefix ( ) { net . roboconf . tooling . core . autocompletion . Couple couple = prepare ( "app2" , "edited2.graph" , 140 ) ; couple . text += "\nfacet<sp>myfacet<sp>{\n\textends:<sp>no" ; java . util . List < net . roboconf . tooling . core . autocompletion . ICompletionProposer . Ro...
org . junit . Assert . assertEquals ( 0 , proposals . size ( ) )
replaceControlSequences ( ) { java . lang . String badText = "The<sp>leader<sp>of<sp>the<sp>^@^@^@^@^@@^@^@<sp>is<sp>never<sp>****<sp>far<sp>away." ; java . lang . String cleanText = edu . illinois . cs . cogcomp . core . utilities . TextCleaner . replaceControlSequence ( badText ) ; boolean isGood = ! ( cleanText . co...
org . junit . Assert . assertEquals ( true , isGood )
matches ( ) { java . lang . Boolean result = encoderUnderTest . matches ( com . jedivision . utils . Base64PasswordEncoderTest . PASSWORD , com . jedivision . utils . Base64PasswordEncoderTest . ENCODED_PASSWORD ) ; "<AssertPlaceHolder>" ; } matches ( java . lang . CharSequence , java . lang . String ) { java . lang . ...
org . junit . Assert . assertTrue ( result )
testMultipleThread ( ) { java . lang . String testname = name . getMethodName ( ) ; org . apache . hadoop . util . InstrumentedLock lock = new org . apache . hadoop . util . InstrumentedLock ( testname , org . apache . hadoop . util . TestInstrumentedLock . LOG , 0 , 300 ) ; lock . lock ( ) ; try { java . lang . Thread...
org . junit . Assert . assertFalse ( lock . tryLock ( ) )
garbage ( ) { java . util . LinkedList < lv . semti . morphology . Testi . Word > tokens = lv . semti . morphology . Testi . Splitting . tokenize ( lv . semti . morphology . Testi . TokenizeTest . loctjs , "rop.<sp>KajiHHHH,<sp>MocKOBCKan<sp>o6\nacTb.<sp>Ha-<sp>6epe*Ha«<sp>Cr.<sp>Pa3MHa,<sp>aom<sp>J*<sp>17.<sp>Kay<5<sp...
org . junit . Assert . assertTrue ( ( ( tokens . size ( ) ) > 0 ) )
testSearchByUserId ( ) { java . util . List < com . ctrip . framework . apollo . portal . entity . po . Favorite > favorites = favoriteService . search ( testUser , null , org . springframework . data . domain . PageRequest . of ( 0 , 10 ) ) ; "<AssertPlaceHolder>" ; }
org . junit . Assert . assertEquals ( 4 , favorites . size ( ) )
mockOverrideOfCloneMethod ( ) { new mockit . Expectations ( ) { { a . clone ( ) ; result = b ; } } ; "<AssertPlaceHolder>" ; } clone ( ) { mockit . ClassWithObjectOverrides theClone = null ; try { theClone = ( ( mockit . ClassWithObjectOverrides ) ( super . clone ( ) ) ) ; } catch ( java . lang . CloneNotSupportedExcep...
org . junit . Assert . assertSame ( b , a . clone ( ) )
testNumberOrder ( ) { org . hypergraphdb . HGHandle typeHandle = graph . getTypeSystem ( ) . getTypeHandle ( hgtest . beans . SimpleBean . class ) ; org . hypergraphdb . indexing . ByPartIndexer < java . lang . Long > byPartIndexer = new org . hypergraphdb . indexing . ByPartIndexer < java . lang . Long > ( "id_indexer...
org . junit . Assert . assertTrue ( ( ( numbers . get ( i ) ) < ( numbers . get ( ( i + 1 ) ) ) ) )
testNonsensePathNoOperators ( ) { com . itextpdf . svg . renderers . impl . PathSvgNodeRenderer path = new com . itextpdf . svg . renderers . impl . PathSvgNodeRenderer ( ) ; java . lang . String instructions = "200" ; path . setAttribute ( SvgConstants . Attributes . D , instructions ) ; "<AssertPlaceHolder>" ; } getS...
org . junit . Assert . assertTrue ( path . getShapes ( ) . isEmpty ( ) )
test ( ) { org . campagnelab . dl . somatic . tools . MapFeatures tool = new org . campagnelab . dl . somatic . tools . MapFeatures ( ) ; tool . arguments = new org . campagnelab . dl . somatic . tools . SomaticMapFeaturesArguments ( ) ; tool . arguments . trainingSets . add ( "sample_data/protobuf/genotypes_proto_muta...
org . junit . Assert . assertEquals ( tool . getNumRecordsWritten ( ) , numRecords )
emptyInput ( ) { "<AssertPlaceHolder>" ; } trace ( java . lang . String ) { if ( == null ) return com . bugquery . stacktrace . Extract . notFound ; java . lang . String $ = "" ; for ( final com . bugquery . stacktrace . Matcher m = com . bugquery . stacktrace . Extract . tracePattern . matcher ( ) ; m . find ( ) ; ) $...
org . junit . Assert . assertEquals ( Extract . notFound , com . bugquery . stacktrace . Extract . trace ( "" ) )
testAppendEmptyStream ( ) { contentBuffer . append ( new byte [ 0 ] ) ; byte [ ] content = contentBuffer . getContent ( ) ; "<AssertPlaceHolder>" ; } getContent ( ) { if ( ( viewer ) != null ) { return viewer . getContent ( ) ; } return null ; }
org . junit . Assert . assertEquals ( 0 , content . length )
testFollowRedirects ( ) { final java . net . URL redirect = getUrl ( "redirect" ) ; com . google . appengine . api . urlfetch . FetchOptions options = FetchOptions . Builder . followRedirects ( ) ; testOptions ( redirect , options , new com . google . appengine . tck . urlfetch . ResponseHandler ( ) { public void handl...
org . junit . Assert . assertEquals ( getUrl ( "" ) , finalURL )
testNullSafeNullComparison2 ( ) { java . lang . String str = "import<sp>org.drools.compiler.*;\n" + ( ( ( ( "rule<sp>R1<sp>when\n" + "<sp>$street<sp>:<sp>String()\n" ) + "<sp>Person(<sp>address!.street<sp>==<sp>$street<sp>)<sp>\n" ) + "then\n" ) + "end" ) ; org . kie . api . KieBase kbase = loadKnowledgeBaseFromString ...
org . junit . Assert . assertEquals ( 1 , ksession . fireAllRules ( ) )
TestMaterieleHistorieGeslachtsNaam ( ) { nl . bzk . algemeenbrp . dal . domein . brp . entity . Persoon persoon = new nl . bzk . algemeenbrp . dal . domein . brp . entity . Persoon ( nl . bzk . algemeenbrp . dal . domein . brp . enums . SoortPersoon . INGESCHREVENE ) ; nl . bzk . algemeenbrp . dal . domein . brp . enti...
org . junit . Assert . assertEquals ( 1 , persoon . getNietVervallenMaterieleGroepen ( ) . size ( ) )
should_return_true_on_validateArchetypeCatalog_for_valid_xml_file_with_namespace ( ) { boolean valid = de . dm . intellij . maven . model . ArchetypeCatalogFactoryUtil . validateArchetypeCatalog ( de . dm . intellij . maven . model . AnArchetypeCatalogFactoryUtil . XML_WITH_NAMESPACE ) ; "<AssertPlaceHolder>" ; } valid...
org . junit . Assert . assertThat ( valid , org . hamcrest . CoreMatchers . equalTo ( true ) )
testCompactHexEncode_3 ( ) { byte [ ] test = "puppy" . getBytes ( ) ; byte [ ] result = new byte [ ] { 7 , 0 , 7 , 5 , 7 , 0 , 7 , 0 , 7 , 9 , org . ethereum . util . CompactEncoderTest . T } ; "<AssertPlaceHolder>" ; } binToNibbles ( byte [ ] ) { byte [ ] hexEncoded = encode ( str ) ; java . nio . ByteBuffer slice = j...
org . junit . Assert . assertArrayEquals ( result , org . ethereum . util . CompactEncoder . binToNibbles ( test ) )
testOnCommandUnhandled ( ) { final org . opendaylight . controller . cluster . databroker . actors . dds . AbstractDataStoreClientBehavior nextBehavior = behavior . onCommand ( "unhandled" ) ; "<AssertPlaceHolder>" ; } onCommand ( java . lang . Object ) { if ( command instanceof org . opendaylight . controller . cluste...
org . junit . Assert . assertSame ( behavior , nextBehavior )
buildGroupResponseShouldProperlyReturnGroupReponse ( ) { org . apache . metron . indexing . dao . search . GroupRequest groupRequest = mock ( org . apache . metron . indexing . dao . search . GroupRequest . class ) ; org . apache . solr . client . solrj . response . QueryResponse queryResponse = mock ( org . apache . s...
org . junit . Assert . assertEquals ( "field1" , groupResponse . getGroupedBy ( ) )
getHostsCount ( ) { System . out . println ( ( ( cz . metacentrum . perun . core . entry . FacilitiesManagerEntryIntegrationTest . CLASS_NAME ) + "getHostsCount" ) ) ; facilitiesManagerEntry . addHosts ( sess , hosts , facility ) ; hostsForDeletion . add ( hosts . get ( 0 ) ) ; "<AssertPlaceHolder>" ; } getHostsCount (...
org . junit . Assert . assertEquals ( facilitiesManagerEntry . getHostsCount ( sess , facility ) , 1 )
testMissingCodeSnippetCondition ( ) { try { makeRuleSet ( ) ; makeRuleTable ( ) ; makeRow ( 11 , "C" , "C" , "C" , "A" , "A" ) ; makeRow ( 12 , "Foo" , "Foo" , "Foo" ) ; makeRow ( 13 , "attr<sp>==<sp>$param" , "attr<sp>==<sp>$param" , "" , "action();" , "action();" ) ; makeRow ( 15 , "1" , "2" , "3" , "" , "" ) ; liste...
org . junit . Assert . assertTrue ( e . getMessage ( ) . contains ( badCell ) )
testRemovePolicyFromGroup_errorInQuery_assertException ( ) { final javax . persistence . EntityManager manager = mock ( javax . persistence . EntityManager . class ) ; doThrow ( new java . lang . RuntimeException ( "Just<sp>Passing<sp>Through" ) ) . when ( manager ) . createQuery ( "SELECT<sp>cpr<sp>from<sp>CertPolicyG...
org . junit . Assert . assertTrue ( exceptionOccured )
testCancelUpgrade ( ) { conf . set ( ( ( YARN_APP_ADMIN_CLIENT_PREFIX ) + ( org . apache . hadoop . yarn . service . client . TestServiceCLI . DUMMY_APP_TYPE ) ) , org . apache . hadoop . yarn . service . client . TestServiceCLI . DummyServiceClient . class . getName ( ) ) ; cli . setConf ( conf ) ; java . lang . Strin...
org . junit . Assert . assertEquals ( result , 0 )
getAndPrintDefaultRuleTypesOfModules ( ) { try { java . lang . String [ ] modules = new java . lang . String [ ] { ModuleTypes . COMPONENT . toString ( ) , ModuleTypes . LAYER . toString ( ) , ModuleTypes . SUBSYSTEM . toString ( ) , ModuleTypes . EXTERNAL_LIBRARY . toString ( ) , ModuleTypes . FACADE . toString ( ) } ...
org . junit . Assert . assertNotNull ( defaultRuleTypes )
testSerialization ( ) { org . jfree . chart . plot . MeterInterval m1 = new org . jfree . chart . plot . MeterInterval ( "X" , new org . jfree . data . Range ( 1.0 , 2.0 ) ) ; java . io . ByteArrayOutputStream buffer = new java . io . ByteArrayOutputStream ( ) ; java . io . ObjectOutput out = new java . io . ObjectOutp...
org . junit . Assert . assertTrue ( b )
plControleGevondenDatumtijdstempelOuderNok ( ) { final nl . bzk . migratiebrp . conversie . model . brp . BrpPersoonslijst dbPersoonslijst = new nl . bzk . migratiebrp . conversie . model . brp . BrpPersoonslijstBuilder ( ) . build ( ) ; setup ( java . util . Collections . singletonList ( dbPersoonslijst ) , java . uti...
org . junit . Assert . assertFalse ( subject . controleer ( new nl . bzk . migratiebrp . synchronisatie . runtime . service . synchronisatie . verwerker . context . VerwerkingsContext ( null , null , null , null ) ) )
testGetAvailableStreams ( ) { final java . util . List < org . opendaylight . yang . gen . v1 . urn . ietf . params . xml . ns . netmod . notification . rev080714 . netconf . streams . Stream > availableStreams = mount . getAvailableStreams ( ) ; "<AssertPlaceHolder>" ; final java . util . List < java . lang . String >...
org . junit . Assert . assertEquals ( 2 , availableStreams . size ( ) )
shouldNotFindProviderWhenNoneIsAvailable ( ) { victim = new ro . isdc . wro . util . provider . ProviderFinder < ro . isdc . wro . model . resource . processor . support . ProcessorProvider > ( ro . isdc . wro . model . resource . processor . support . ProcessorProvider . class ) { @ ro . isdc . wro . util . provider ....
org . junit . Assert . assertTrue ( victim . find ( ) . isEmpty ( ) )
extractEnclosureTest ( ) { final com . sun . syndication . feed . synd . SyndEntry entry = new com . sun . syndication . feed . synd . SyndEntryImpl ( ) ; entry . setTitle ( "my<sp>entry" ) ; final com . sun . syndication . feed . synd . SyndEnclosure invalidEnclosure = new com . sun . syndication . feed . synd . SyndE...
org . junit . Assert . assertEquals ( "http://192.168.1.11/tests_silence/P041_Fin_del_Sueno_Zenon_y_Curie1.mp3" , net . violet . platform . feeds . FeedsTools . extractEnclosureUrl ( entry ) )
testMaxLength ( ) { int maxLength = 2 ; java . util . function . IntPredicate filter = ( i ) -> true ; java . util . List < org . ranksys . core . util . tuples . Tuple2id > result = recommender . getRecommendation ( 0 , maxLength , filter ) . getIidxs ( ) ; java . util . List < org . ranksys . core . util . tuples . T...
org . junit . Assert . assertEquals ( expected , result )