input stringlengths 28 18.7k | output stringlengths 39 1.69k |
|---|---|
testVoerRegelUitStamgegevenNietOpgegeven ( ) { final nl . bzk . brp . model . synchronisatie . GeefSynchronisatieStamgegevenBericht bericht = new nl . bzk . brp . model . synchronisatie . GeefSynchronisatieStamgegevenBericht ( ) ; bericht . setParameters ( new nl . bzk . brp . model . bericht . ber . BerichtParametersG... | org . junit . Assert . assertTrue ( berichtIdentificeerbaars . isEmpty ( ) ) |
updateAwayStateShouldHandleMissingController ( ) { "<AssertPlaceHolder>" ; chatWindow . updateAwayState ( ) ; verifyZeroInteractions ( controller ) ; } getControllerFromChatWindow ( ) { return net . usikkert . kouchat . util . TestUtils . getFieldValue ( chatWindow , net . usikkert . kouchat . android . controller . Pr... | org . junit . Assert . assertNull ( getControllerFromChatWindow ( ) ) |
blockingBlob ( ) { java . util . concurrent . ExecutorService updateExecutor = newSingleThreadExecutor ( ) ; java . util . concurrent . ExecutorService commitExecutor = newSingleThreadExecutor ( ) ; org . apache . jackrabbit . oak . plugins . document . DocumentStore docStore = new org . apache . jackrabbit . oak . plu... | org . junit . Assert . assertTrue ( blockingBlob . waitForRead ( 1 , org . apache . jackrabbit . oak . plugins . document . SECONDS ) ) |
searchNonExistentAlarm ( ) { com . vsct . supervision . seyren . api . Alarm searchAlarm = new com . vsct . supervision . seyren . api . Alarm ( ) ; searchAlarm . setTarget ( "testing.is.good" ) ; searchAlarm . setWarn ( java . math . BigDecimal . valueOf ( 155 ) ) ; searchAlarm . setError ( java . math . BigDecimal . ... | org . junit . Assert . assertNull ( foundAlarm ) |
testSetLineSeparator ( ) { final com . orangesignal . csv . CsvConfig cfg = new com . orangesignal . csv . CsvConfig ( ) ; cfg . setLineSeparator ( "\n" ) ; "<AssertPlaceHolder>" ; } getLineSeparator ( ) { return lineSeparator ; } | org . junit . Assert . assertThat ( cfg . getLineSeparator ( ) , org . hamcrest . core . Is . is ( "\n" ) ) |
testCeilDecimalInWhere ( ) { java . sql . Connection conn = java . sql . DriverManager . getConnection ( getUrl ( ) ) ; java . sql . ResultSet rs = conn . createStatement ( ) . executeQuery ( "SELECT<sp>*<sp>FROM<sp>ROUND_DATE_TIME_TS_DECIMAL<sp>WHERE<sp>CEIL(dec,<sp>2)<sp>=<sp>1.27" ) ; "<AssertPlaceHolder>" ; } next ... | org . junit . Assert . assertTrue ( rs . next ( ) ) |
getDropIndexFailedPlan ( ) { java . lang . String sql1 = "DROP<sp>INDEX<sp>-PhotosByTime-<sp>ON<sp>Photo;" ; java . lang . String sql2 = "DROP<sp>INDEX<sp>PhotosByTime<sp>ON<sp>Photo1;" ; java . lang . String sql3 = "DROP<sp>INDEX<sp>PhotosByTime<sp>ON<sp>.Photo.;" ; java . lang . String [ ] sqlList = new java . lang .... | org . junit . Assert . assertFalse ( result ) |
testDirectedGraphNoNeighbors ( ) { instance . addVertex ( 1 ) ; "<AssertPlaceHolder>" ; instance . clear ( ) ; } neighbors ( V extends com . killeent . Graph . Comparable ) { if ( vertex == null ) { throw new java . lang . IllegalArgumentException ( "vertex<sp>cannot<sp>be<sp>null" ) ; } if ( ! ( graph . containsKey ( ... | org . junit . Assert . assertTrue ( instance . neighbors ( 1 ) . isEmpty ( ) ) |
testGetComponentWithServer ( ) { java . lang . Object result = server . _get_component ( ) ; "<AssertPlaceHolder>" ; } _get_component ( ) { return _get_delegate ( ) . get_component ( this ) ; } | org . junit . Assert . assertTrue ( ( result == null ) ) |
givenUsingJava7_whenWritingToFile_thenCorrect ( ) { final java . lang . String str = "Hello" ; final java . nio . file . Path path = java . nio . file . Paths . get ( fileName3 ) ; final byte [ ] strToBytes = str . getBytes ( ) ; java . nio . file . Files . write ( path , strToBytes ) ; final java . lang . String read ... | org . junit . Assert . assertEquals ( str , read ) |
pullInstancesCancel ( ) { new mockit . MockUp < org . apache . servicecomb . serviceregistry . RegistryUtils > ( ) { @ mockit . Mock org . apache . servicecomb . serviceregistry . client . http . MicroserviceInstances findServiceInstances ( java . lang . String appId , java . lang . String serviceName , java . lang . S... | org . junit . Assert . assertEquals ( 1 , pendingPullCount . get ( ) ) |
testNegativeY ( ) { org . apache . commons . math4 . linear . ArrayRealVector c = new org . apache . commons . math4 . linear . ArrayRealVector ( new double [ ] { 1.23 , - 1.434343434343 , 1.63 } ) ; java . lang . String expected = ( ( ( ( ( "{1" + ( getDecimalCharacter ( ) ) ) + "23;<sp>-1" ) + ( getDecimalCharacter (... | org . junit . Assert . assertEquals ( expected , actual ) |
testQueryPreflightEmptySchema ( ) { when ( mockColumnModelDAO . getColumnModelsForObject ( tableId ) ) . thenReturn ( new java . util . LinkedList < org . sagebionetworks . repo . model . table . ColumnModel > ( ) ) ; java . util . List < org . sagebionetworks . repo . model . table . SortItem > sortList = null ; try {... | org . junit . Assert . assertEquals ( tableId , e . getTableId ( ) ) |
testGetFormattedElementFromInvocationContext ( ) { org . apache . servicecomb . transport . rest . vertx . accesslog . AccessLogParam < io . vertx . ext . web . RoutingContext > param = new org . apache . servicecomb . transport . rest . vertx . accesslog . AccessLogParam ( ) ; io . vertx . ext . web . RoutingContext r... | org . junit . Assert . assertThat ( result , org . hamcrest . core . Is . is ( traceIdTest ) ) |
testFindRelatedStreams2_gh2150 ( ) { mockMvc . perform ( post ( ":foo.time<sp>><sp>log" 2 ) . param ( "name" , ":foo.time<sp>><sp>log" 1 ) . param ( "definition" , ":bar.time<sp>><sp>log" ) . accept ( MediaType . APPLICATION_JSON ) ) . andDo ( print ( ) ) . andExpect ( status ( ) . isCreated ( ) ) ; mockMvc . perform (... | org . junit . Assert . assertEquals ( 2 , repository . count ( ) ) |
testRegelGaatNietAfGrensGeval ( ) { final nl . bzk . brp . model . bericht . kern . PersoonBericht persoonBericht = new nl . bzk . brp . model . bericht . kern . PersoonBericht ( ) ; persoonBericht . setReisdocumenten ( new java . util . ArrayList < nl . bzk . brp . model . bericht . kern . PersoonReisdocumentBericht >... | org . junit . Assert . assertTrue ( berichtEntiteits . isEmpty ( ) ) |
zeroUploadRetryDelayMs ( ) { com . hotels . bdp . circustrain . s3mapreducecp . S3MapReduceCpOptions options = parser . parse ( "--src" , "hdfs://localhost:8020/source/first" , "--dest" , "hdfs://localhost:8020/target/" , "--credentialsProvider" , "jceks://hdfs@localhost:8020/security/credentials.jceks" , "--uploadRetr... | org . junit . Assert . assertThat ( options . getUploadRetryDelayMs ( ) , org . hamcrest . CoreMatchers . is ( 0L ) ) |
reportTrailersWhenTrailersReceivedBeforeReadClosed ( ) { org . mockito . ArgumentCaptor < org . chromium . net . BidirectionalStream . Callback > callbackCaptor = org . mockito . ArgumentCaptor . forClass ( BidirectionalStream . Callback . class ) ; verify ( factory ) . newBidirectionalStreamBuilder ( isA ( java . lang... | org . junit . Assert . assertEquals ( Status . UNAUTHENTICATED . getCode ( ) , status . getCode ( ) ) |
testPersoonMetIndicatieDerdeHeeftGezagBijEenOuderGeenOuderschapEnGeenOuderlijkGezag ( ) { final java . util . List < nl . bzk . brp . model . basis . BerichtEntiteit > berichtEntiteiten = brby2019 . voerRegelUit ( maakPersoon ( SoortIndicatie . INDICATIE_DERDE_HEEFT_GEZAG , 1 , nl . bzk . brp . bijhouding . business . ... | org . junit . Assert . assertEquals ( 0 , berichtEntiteiten . size ( ) ) |
decimalArrayWithinVariantDecoding ( ) { long value = 1518632738243L ; org . opcfoundation . ua . builtintypes . ExpandedNodeId id = new org . opcfoundation . ua . builtintypes . ExpandedNodeId ( org . opcfoundation . ua . common . NamespaceTable . OPCUA_NAMESPACE , Identifiers . Decimal . getValue ( ) ) ; java . util .... | org . junit . Assert . assertEquals ( expected , output ) |
testScan ( ) { ssdbClient . set ( "_key0" , 0 ) ; ssdbClient . set ( "_key1" , 1 ) ; ssdbClient . set ( "_key2" , 2 ) ; ssdbClient . set ( "_key3" , 3 ) ; ssdbClient . set ( "_key4" , 4 ) ; java . util . List < com . hyd . ssdb . util . KeyValue > keyValues = ssdbClient . scan ( "_key0" , "_key9" , 9 ) ; "<AssertPlaceH... | org . junit . Assert . assertEquals ( 4 , keyValues . size ( ) ) |
testCapitalizeFirstLetterWithBlank ( ) { "<AssertPlaceHolder>" ; } capitalizeFirstLetter ( java . lang . String ) { if ( au . gov . ga . worldwind . common . util . Util . isBlank ( s ) ) { return s ; } return ( s . substring ( 0 , 1 ) . toUpperCase ( ) ) + ( s . substring ( 1 ) ) ; } | org . junit . Assert . assertEquals ( "<sp>" , au . gov . ga . worldwind . common . util . Util . capitalizeFirstLetter ( "<sp>" ) ) |
testDeserializeOneObject ( ) { org . eclipse . emf . ecore . resource . Resource resource = createUuidResource ( "test.xmi" , mapper ) ; org . emfjson . jackson . tests . uuids . Container root = ModelFactory . eINSTANCE . createContainer ( ) ; resource . getContents ( ) . add ( root ) ; com . fasterxml . jackson . dat... | org . junit . Assert . assertEquals ( uuid ( root ) , uuid ( eObject ) ) |
testParseField_simple2 ( ) { org . eclipse . tracecompass . ctf . core . event . types . IntegerDefinition fieldDef = new org . eclipse . tracecompass . ctf . core . event . types . IntegerDefinition ( org . eclipse . tracecompass . ctf . core . event . types . IntegerDeclaration . createDeclaration ( 1 , false , 1 , B... | org . junit . Assert . assertNotNull ( fieldDef ) |
testAffectedFeatures ( ) { org . locationtech . geogig . repository . Repository repo = repoProvider . createGeogig ( "repo1" , null ) ; repoProvider . getTestRepository ( "repo1" ) . initializeRpository ( ) ; org . locationtech . geogig . test . TestData testData = new org . locationtech . geogig . test . TestData ( r... | org . junit . Assert . assertTrue ( masterCommits . hasNext ( ) ) |
shouldCreateNothingForUnknownProtocolVersion ( ) { int protocolVersion = 42 ; org . neo4j . bolt . BoltChannel channel = org . neo4j . bolt . testing . BoltTestUtil . newTestBoltChannel ( ) ; org . neo4j . bolt . transport . BoltProtocolFactory factory = new org . neo4j . bolt . transport . DefaultBoltProtocolFactory (... | org . junit . Assert . assertNull ( protocol ) |
shouldNotAllowToRemoveDefaultInstanceOfResTypeIfHasPermissionForResourcesOnly ( ) { ch . puzzle . itc . mobiliar . business . security . control . ResourceTypeEntity applicationResTypeEntity = new ch . puzzle . itc . mobiliar . business . security . control . ResourceTypeEntity ( ) ; applicationResTypeEntity . setName ... | org . junit . Assert . assertFalse ( result ) |
testDescribeRing ( ) { java . util . List < org . apache . cassandra . thrift . TokenRange > ring = cassandraCluster . describeRing ( "Keyspace1" ) ; "<AssertPlaceHolder>" ; } size ( ) { return components . size ( ) ; } | org . junit . Assert . assertEquals ( 1 , ring . size ( ) ) |
testConvertHierarchy ( ) { final java . lang . String inputFile = "/input-hierarchy.xml" ; final java . lang . String outputFile = "/output-hierarchy.csv" ; final java . io . Writer writer = new java . io . StringWriter ( ) ; com . fordfrog . xml2csv . Convertor . convert ( this . getClass ( ) . getResourceAsStream ( i... | org . junit . Assert . assertEquals ( expected , writer . toString ( ) ) |
testInvalidMinSize ( ) { System . out . println ( "::::::::::::::::::::::::::<sp>TESTING<sp>MAX<sp>MIN<sp>::::::::::::::::::::::::::" ) ; java . io . InputStream inputStream = getClass ( ) . getClassLoader ( ) . getResourceAsStream ( "TestMinMax.xml" ) ; "<AssertPlaceHolder>" ; java . util . Collection < com . smartite... | org . junit . Assert . assertNotNull ( inputStream ) |
testStringToDateComparison ( ) { java . lang . String str = ( ( ( ( ( ( ( "import<sp>" + ( java . util . Date . class . getCanonicalName ( ) ) ) + ";\n" ) + "declare<sp>Flight<sp>departuretime<sp>:<sp>java.util.Date<sp>end\n" ) + "rule<sp>Init<sp>when<sp>then<sp>insert(new<sp>Flight(new<sp>Date(365L<sp>*<sp>24<sp>*<sp>... | org . junit . Assert . assertEquals ( 2 , ksession . fireAllRules ( ) ) |
testGet ( ) { java . lang . String s = org . jboss . resteasy . test . rx . rxjava2 . Rx2SingleProxyServerAsyncTest . proxy . get ( ) ; "<AssertPlaceHolder>" ; } get ( ) { return org . jboss . resteasy . test . rx . rxjava2 . resource . Rx2ObservableResourceNoStreamImpl . buildObservableString ( "x" , 3 ) ; } | org . junit . Assert . assertEquals ( "x" , s ) |
whenGroovyConfig_thenCorrectListLength ( ) { org . springframework . context . support . GenericGroovyApplicationContext ctx = new org . springframework . context . support . GenericGroovyApplicationContext ( ) ; ctx . load ( ( ( "file:" + ( getPathPart ( ) ) ) + ( com . baeldug . groovyconfig . GroovyConfigurationUnit... | org . junit . Assert . assertEquals ( 3 , bb . getBandsList ( ) . size ( ) ) |
shouldPut ( ) { cache . put ( "key" , cacheable ) ; "<AssertPlaceHolder>" ; } size ( ) { return values . size ( ) ; } | org . junit . Assert . assertEquals ( cache . size ( ) , 1 ) |
testResourcesNotEmpty ( ) { org . rapla . entities . domain . Allocatable [ ] resources = facade . getAllocatablesWithFilter ( null ) ; "<AssertPlaceHolder>" ; } getAllocatablesWithFilter ( org . rapla . entities . dynamictype . ClassificationFilter [ ] ) { return getVisibleAllocatables ( filters ) . toArray ( Allocata... | org . junit . Assert . assertTrue ( ( ( resources . length ) > 0 ) ) |
canSerializeAndDeserializeJson ( ) { com . google . common . collect . ImmutableMap < java . lang . String , java . lang . Object > rawAttributes1 = com . google . common . collect . ImmutableMap . of ( "name" , "target1" , "buck.type" , "java_library" , "target2" 0 , "base" , "deps" , com . google . common . collect .... | org . junit . Assert . assertEquals ( rawTargetNodeWithDepsPackage , rawTargetNodeWithDepsPackageDeserialized ) |
testColumnPrefixFilter ( ) { java . lang . String family = "Family" ; org . apache . hadoop . hbase . HTableDescriptor htd = new org . apache . hadoop . hbase . HTableDescriptor ( org . apache . hadoop . hbase . TableName . valueOf ( name . getMethodName ( ) ) ) ; htd . addFamily ( new org . apache . hadoop . hbase . H... | org . junit . Assert . assertEquals ( prefixMap . get ( s ) . size ( ) , results . size ( ) ) |
testGeenVerstrekkingsbeperkingen ( ) { final java . util . List < nl . bzk . brp . model . basis . BerichtEntiteit > meldingen ; meldingen = bedrijfsregel . voerRegelUit ( null , new nl . bzk . brp . model . bericht . kern . PersoonBericht ( ) , null , null ) ; "<AssertPlaceHolder>" ; } size ( ) { return elementen . si... | org . junit . Assert . assertEquals ( 0 , meldingen . size ( ) ) |
testCallStatement ( ) { try ( io . sniffy . Connection connection = io . sniffy . DriverManager . getConnection ( "sniffer:jdbc:h2:mem:" , "sa" , "sa" ) ) { try ( io . sniffy . Statement statement = connection . createStatement ( ) ) { statement . execute ( "CREATE<sp>ALIAS<sp>IF<sp>NOT<sp>EXISTS<sp>TIMES_TWO<sp>FOR<sp... | org . junit . Assert . assertEquals ( 1 , spy . executedStatements ( ) ) |
testPercieveAtomTypesAndConfigureAtoms ( ) { java . lang . String rawMolSmiles = "[H]POOSC(Br)C(Cl)C(F)I" ; org . openscience . cdk . smiles . SmilesParser sp = new org . openscience . cdk . smiles . SmilesParser ( org . openscience . cdk . DefaultChemObjectBuilder . getInstance ( ) ) ; org . openscience . cdk . interf... | org . junit . Assert . assertNotNull ( atomContainer ) |
test ( ) { java . util . List < java . lang . String > messages = new java . util . LinkedList ( ) ; com . codenjoy . dojo . client . LocalGameRunner . timeout = 0 ; com . codenjoy . dojo . client . LocalGameRunner . out = ( e ) -> messages . add ( e ) ; com . codenjoy . dojo . client . LocalGameRunner . countIteration... | org . junit . Assert . assertEquals ( "" , java . lang . String . join ( "\n" , messages ) ) |
testEquals ( ) { org . apache . druid . query . Query query1 = org . apache . druid . query . Druids . newSearchQueryBuilder ( ) . dataSource ( QueryRunnerTestHelper . dataSource ) . granularity ( QueryRunnerTestHelper . allGran ) . intervals ( QueryRunnerTestHelper . fullOnIntervalSpec ) . dimensions ( new org . apach... | org . junit . Assert . assertEquals ( query1 , query2 ) |
testCipherSuiteSupportForwardSecrecy ( ) { java . lang . String cipherSuite = "0x0005" ; packetAnalyzerResult = getPacketAnalyzerResult ( cipherSuite ) ; result = ( ( com . att . aro . core . bestpractice . pojo . ForwardSecrecyResult ) ( ( ( com . att . aro . core . bestpractice . impl . ForwardSecrecyImpl ) ( bestPra... | org . junit . Assert . assertEquals ( 1 , result . getResults ( ) . size ( ) ) |
testLogNull ( ) { de . sstoehr . harreader . model . Har har = new de . sstoehr . harreader . model . Har ( ) ; har . setLog ( null ) ; "<AssertPlaceHolder>" ; } getLog ( ) { if ( ( log ) == null ) { log = new de . sstoehr . harreader . model . HarLog ( ) ; } return log ; } | org . junit . Assert . assertNotNull ( har . getLog ( ) ) |
testInNull ( ) { org . dayatang . persistence . jpa . Collection < java . lang . Object > value = null ; org . dayatang . persistence . jpa . List < org . dayatang . persistence . test . domain . Dictionary > results = instance . in ( "id" , value ) . list ( ) ; "<AssertPlaceHolder>" ; } isEmpty ( ) { return true ; } | org . junit . Assert . assertTrue ( results . isEmpty ( ) ) |
testJaspiAuthContext ( ) { com . ibm . ws . security . jaspi . JaspiServiceImplTest . TestDoubleJaspiServiceImpl jaspiService = new com . ibm . ws . security . jaspi . JaspiServiceImplTest . TestDoubleJaspiServiceImpl ( ) ; mock . checking ( new org . jmock . Expectations ( ) { { allowing ( mockWebSecurityContext ) . g... | org . junit . Assert . assertNotNull ( jac ) |
overrideDefaultProtocolJBossEAP7 ( ) { org . arquillian . container . chameleon . spi . model . ContainerAdapter adapter = load ( "jboss<sp>eap:7.0.0.GA:managed" ) ; "<AssertPlaceHolder>" ; } overrideDefaultProtocol ( ) { return ( this . defaultProtocol ) != null ; } | org . junit . Assert . assertFalse ( adapter . overrideDefaultProtocol ( ) ) |
testStoreNonserializable ( ) { final org . apache . hc . client5 . http . impl . auth . BasicAuthCache cache = new org . apache . hc . client5 . http . impl . auth . BasicAuthCache ( ) ; final org . apache . hc . client5 . http . auth . AuthScheme authScheme = new org . apache . hc . client5 . http . impl . auth . NTLM... | org . junit . Assert . assertNull ( cache . get ( new org . apache . hc . core5 . http . HttpHost ( "localhost" , 80 ) ) ) |
testGetInitMsgData ( ) { System . out . println ( "testGetInitMsgData" ) ; gov . hhs . fha . nhinc . asyncmsgs . model . AsyncMsgRecord instance = new gov . hhs . fha . nhinc . asyncmsgs . model . AsyncMsgRecord ( ) ; java . sql . Blob result = instance . getMsgData ( ) ; "<AssertPlaceHolder>" ; } getMsgData ( ) { retu... | org . junit . Assert . assertNull ( result ) |
testKeywordMatcher ( ) { java . lang . String query = "lin<sp>clooney<sp>is<sp>short<sp>and<sp>angry" ; java . util . ArrayList < java . lang . String > attributeNames = new java . util . ArrayList ( ) ; attributeNames . add ( TestConstants . FIRST_NAME ) ; attributeNames . add ( TestConstants . LAST_NAME ) ; attribute... | org . junit . Assert . assertEquals ( 0 , results . size ( ) ) |
testPelzGoodApproximation ( ) { org . apache . commons . math4 . stat . inference . KolmogorovSmirnovTest ksTest = new org . apache . commons . math4 . stat . inference . KolmogorovSmirnovTest ( ) ; final double [ ] d = new double [ ] { 0.15 , 0.2 , 0.25 , 0.3 , 0.35 , 0.4 } ; final int [ ] n = new int [ ] { 141 , 150 ... | org . junit . Assert . assertEquals ( ref [ k ] , ksTest . pelzGood ( d [ i ] , n [ j ] ) , tol ) |
delayedRemoveTest ( ) { org . spout . api . util . list . concurrent . ConcurrentList < java . lang . Integer > list = new org . spout . api . util . list . concurrent . ConcurrentList ( ) ; list . addDelayed ( 5 ) ; list . removeDelayed ( 5 ) ; list . sync ( ) ; "<AssertPlaceHolder>" ; } isEmpty ( ) { return ( size ( ... | org . junit . Assert . assertTrue ( list . isEmpty ( ) ) |
testForumListSerialization ( ) { com . ibm . sbt . services . client . base . datahandlers . EntityList < com . ibm . sbt . services . client . connections . forums . Forum > forums = forumService . getAllForums ( ) ; new com . ibm . sbt . services . client . SerializationUtil ( ) { @ com . ibm . sbt . services . clien... | org . junit . Assert . assertEquals ( true , ( ( allforums . size ( ) ) > 0 ) ) |
processMessage ( ) { org . eclipse . smarthome . binding . mqtt . generic . internal . values . TextValue textValue = new org . eclipse . smarthome . binding . mqtt . generic . internal . values . TextValue ( ) ; org . eclipse . smarthome . binding . mqtt . generic . internal . generic . ChannelState channelConfig = sp... | org . junit . Assert . assertThat ( textValue . getChannelState ( ) . toString ( ) , org . hamcrest . CoreMatchers . is ( "UPDATE" ) ) |
shouldViewTypeCountEqualsNumItemLayouts ( ) { org . robobinding . widget . adapterview . MultiItemLayoutSelector layoutSelector = new org . robobinding . widget . adapterview . MultiItemLayoutSelector ( itemLayoutIds , null ) ; "<AssertPlaceHolder>" ; } getViewTypeCount ( ) { return viewTypeCount ; } | org . junit . Assert . assertThat ( layoutSelector . getViewTypeCount ( ) , org . hamcrest . Matchers . equalTo ( itemLayoutIds . size ( ) ) ) |
testSearchPostCode ( ) { customer . setPostal_Code ( "H3S" ) ; data = manager . search ( ) ; "<AssertPlaceHolder>" ; } search ( ) { java . lang . String selectStatement = "select<sp>*<sp>from<sp>users<sp>where<sp>" ; int size = selectStatement . length ( ) ; values = new java . util . ArrayList < java . lang . Object >... | org . junit . Assert . assertTrue ( ( ( data . size ( ) ) == 2 ) ) |
testCloseChildShells ( ) { shell . open ( ) ; org . eclipse . swt . widgets . Shell childShell = new org . eclipse . swt . widgets . Shell ( shell ) ; shell . close ( ) ; "<AssertPlaceHolder>" ; } isDisposed ( ) { org . eclipse . swt . widgets . Control c = getMessageControl ( ) ; return ( c != null ) && ( c . isDispos... | org . junit . Assert . assertTrue ( childShell . isDisposed ( ) ) |
testRegex ( ) { java . lang . String o = ".*foo.*" ; com . gigaspaces . internal . query . predicate . comparison . RegexSpacePredicate p = com . gigaspaces . internal . query . predicate . SpacePredicates . regex ( o ) ; "<AssertPlaceHolder>" ; } getExpectedValue ( ) { return this . _expectedValue ; } | org . junit . Assert . assertSame ( o , p . getExpectedValue ( ) ) |
testFrustrum ( ) { com . hackoeur . jglm . Mat4 got = com . hackoeur . jglm . Matrices . frustum ( ( - 1.0F ) , 1.0F , ( - 1.0F ) , 1.0F , 1.5F , 20.0F ) ; com . hackoeur . jglm . Mat4 expected = new com . hackoeur . jglm . Mat4 ( ( + 1.5F ) , ( + 0.0F ) , ( + 0.0F ) , ( + 0.0F ) , ( + 0.0F ) , ( + 1.5F ) , ( + 0.0F ) ... | org . junit . Assert . assertEquals ( expected , got ) |
testGetResponseTime ( ) { System . out . println ( "getResponseTime" ) ; kg . apc . jmeter . samplers . DummySampler instance = new kg . apc . jmeter . samplers . DummySampler ( ) ; int expResult = 0 ; int result = instance . getResponseTime ( ) ; "<AssertPlaceHolder>" ; } getResponseTime ( ) { return getPropertyAsStri... | org . junit . Assert . assertEquals ( expResult , result ) |
extractPathWithinPattern_SPR_10515_test ( ) { java . lang . String pattern = "**/something" ; java . lang . String path = "/one/two/three/something" ; java . lang . String pathWithinPattern = new org . springframework . util . AntPathMatcher ( ) . extractPathWithinPattern ( pattern , path ) ; "<AssertPlaceHolder>" ; } | org . junit . Assert . assertEquals ( "/one/two/three/something" , pathWithinPattern ) |
testLastOp ( ) { org . stringtemplate . v4 . ST e = new org . stringtemplate . v4 . ST ( "<last(names)>" ) ; e . add ( "names" , "Ter" ) ; e . add ( "names" , "Tom" ) ; e . add ( "names" , "Sriram" ) ; java . lang . String expecting = "Sriram" ; "<AssertPlaceHolder>" ; } render ( ) { return render ( java . util . Local... | org . junit . Assert . assertEquals ( expecting , e . render ( ) ) |
testTokenEqualsZeroAfterThrottlingAtStepTokensAtEachInterval ( ) { for ( int i = 1 ; i <= ( ( REFILL_INTERVAL ) / ( STEP_INTERVAL ) ) ; i ++ ) { bucket . isThrottled ( STEP_TOKENS ) ; "<AssertPlaceHolder>" ; } } getCurrentTokenCount ( ) { updateTokens ( ) ; return tokens ; } | org . junit . Assert . assertEquals ( 0 , bucket . getCurrentTokenCount ( ) ) |
testProto ( ) { org . apache . tajo . catalog . Schema schema2 = org . apache . tajo . catalog . SchemaFactory . newV1 ( schema . getProto ( ) ) ; org . apache . tajo . catalog . proto . CatalogProtos . SchemaProto proto = schema2 . getProto ( ) ; org . apache . tajo . catalog . Schema fromProto = org . apache . tajo .... | org . junit . Assert . assertEquals ( schema2 , fromProto ) |
multipleModelMethod ( ) { org . dmg . pmml . mining . Segmentation [ ] multipleModelMethods = Segmentation . MultipleModelMethod . values ( ) ; "<AssertPlaceHolder>" ; org . dmg . pmml . mining . SegmentationTest . checkOrder ( Segmentation . MultipleModelMethod . MAJORITY_VOTE , Segmentation . MultipleModelMethod . WE... | org . junit . Assert . assertEquals ( ( 10 + 2 ) , multipleModelMethods . length ) |
testInit ( ) { org . tiefaces . components . websheet . TieWebSheetBean bean = new org . tiefaces . components . websheet . TieWebSheetBean ( ) ; bean . init ( ) ; "<AssertPlaceHolder>" ; } getColumns ( ) { return columns ; } | org . junit . Assert . assertTrue ( bean . getColumns ( ) . isEmpty ( ) ) |
testGetNextAvailable_0args ( ) { int result = org . apache . usergrid . persistence . core . util . AvailablePortFinder . getNextAvailable ( ) ; "<AssertPlaceHolder>" ; } getNextAvailable ( ) { java . net . ServerSocket serverSocket = null ; try { serverSocket = new java . net . ServerSocket ( 0 ) ; int port = serverSo... | org . junit . Assert . assertTrue ( ( result > 0 ) ) |
manageDeletionProcess_VSYSTEM_DELETING_NextStatusNotNormal ( ) { doReturn ( Boolean . FALSE ) . when ( vSystemProcessor ) . checkNextStatus ( org . oscm . app . iaas . VSystemProcessorBeanTest . CONTROLLER_ID , org . oscm . app . iaas . VSystemProcessorBeanTest . INSTANCE_ID , FlowState . DESTROYED , paramHandler ) ; o... | org . junit . Assert . assertNull ( newState ) |
whenStatusIsErrorAndStatusMessageStartsWithUnknownShouldBeChangedToUnknownInResponse ( ) { java . io . ByteArrayOutputStream responseBody = new java . io . ByteArrayOutputStream ( ) ; java . util . Map < java . lang . String , java . lang . String > queryParams = new java . util . TreeMap ( ) ; queryParams . put ( GetB... | org . junit . Assert . assertEquals ( expected , actual ) |
complex_objects_should_be_candidate_as_keys ( ) { com . lordofthejars . nosqlunit . objects . KeyValueObjectMapper keyValueObjectMapper = new com . lordofthejars . nosqlunit . objects . KeyValueObjectMapper ( ) ; java . util . Map < java . lang . Object , java . lang . Object > elements = keyValueObjectMapper . readVal... | org . junit . Assert . assertThat ( readElement , org . hamcrest . CoreMatchers . is ( "alex" ) ) |
shouldGetSource ( ) { "<AssertPlaceHolder>" ; } getSource ( ) { return ( ( javax . faces . application . Application ) ( super . getSource ( ) ) ) ; } | org . junit . Assert . assertThat ( this . helper . getSource ( ) , org . hamcrest . Matchers . is ( this . source ) ) |
testAsHashMap ( ) { de . metanome . algorithm_helper . data_structures . PositionListIndex firstPLI = fixture . getFirstPLI ( ) ; it . unimi . dsi . fastutil . longs . Long2LongOpenHashMap expectedHashMap = fixture . getFirstPLIAsHashMap ( ) ; "<AssertPlaceHolder>" ; } asHashMap ( ) { de . metanome . algorithm_helper .... | org . junit . Assert . assertEquals ( expectedHashMap , firstPLI . asHashMap ( ) ) |
testToString ( ) { org . eclipse . tracecompass . tmf . core . event . ITmfEventField emptyField = new org . eclipse . tracecompass . tmf . core . event . TmfEventField ( "" , null , new org . eclipse . tracecompass . tmf . core . event . ITmfEventField [ ] { } ) ; org . eclipse . tracecompass . tmf . ctf . core . even... | org . junit . Assert . assertEquals ( "" , result ) |
testConvertRawValueValidType ( ) { java . lang . Object expectedValue = "abcde" ; java . lang . Object rawValue = "a | org . junit . Assert . assertEquals ( expectedValue , removeControlCharsStandardizer . convertRawValue ( rawValue ) ) |
chunk ( ) { org . eclipse . collections . api . set . MutableSet < java . lang . String > set = this . classUnderTest ( ) ; org . eclipse . collections . api . RichIterable < org . eclipse . collections . api . RichIterable < java . lang . String > > chunks = set . chunk ( 2 ) ; org . eclipse . collections . api . list... | org . junit . Assert . assertEquals ( hashBag , sizes . toBag ( ) ) |
testMacAddressLong ( ) { com . cloud . utils . net . MacAddress mac = new com . cloud . utils . net . MacAddress ( 1L ) ; "<AssertPlaceHolder>" ; } toLong ( ) { return _addr ; } | org . junit . Assert . assertEquals ( 1L , mac . toLong ( ) ) |
nullEncoding ( ) { java . sql . Connection conn = java . sql . DriverManager . getConnection ( getUrl ( ) ) ; java . lang . String testTable = generateUniqueName ( ) ; java . lang . String ddl = ( "CREATE<sp>TABLE<sp>" + testTable ) + "<sp>(<sp>some_column<sp>BINARY(12)<sp>NOT<sp>NULL<sp>CONSTRAINT<sp>PK<sp>PRIMARY<sp>... | org . junit . Assert . assertFalse ( rs . next ( ) ) |
whenFindExistingFunctionWithMatchedParameterTypes_thenFunctionFound ( ) { org . robobinding . function . Function function = lazyFunctions . find ( org . robobinding . function . LazyFunctionsTest . FunctionsBean . FUNCTION1 , new java . lang . Class < ? > [ ] { boolean . class } ) ; "<AssertPlaceHolder>" ; } find ( ja... | org . junit . Assert . assertNotNull ( function ) |
verifyWithoutMask ( ) { final int N = 32 ; final int TIMES = 1000 ; java . util . Random r = new java . util . Random ( ) ; int [ ] data = new int [ N ] ; int [ ] compressed = new int [ N ] ; int [ ] uncompressed = new int [ N ] ; for ( int bit = 0 ; bit < 31 ; ++ bit ) { for ( int t = 0 ; t < TIMES ; ++ t ) { for ( in... | org . junit . Assert . assertArrayEquals ( uncompressed , data ) |
testCreate ( ) { org . oscarehr . common . model . CtlRelationships entity = new org . oscarehr . common . model . CtlRelationships ( ) ; entity . setValue ( "value" ) ; entity . setLabel ( "label" ) ; dao . persist ( entity ) ; "<AssertPlaceHolder>" ; } getId ( ) { return this . id ; } | org . junit . Assert . assertNotNull ( entity . getId ( ) ) |
testTruncTimstampColumn_Year ( ) { java . lang . String sqlText = java . lang . String . format ( "select<sp>trunc(t,<sp>\'year\')<sp>as<sp>\"truncd\",<sp>d,<sp>t,<sp>n<sp>from<sp>%s" , com . splicemachine . derby . impl . sql . execute . operations . TruncateFunctionIT . QUALIFIED_TABLE_NAME ) ; java . sql . ResultSet... | org . junit . Assert . assertEquals ( ( ( "\n" + sqlText ) + "\n" ) , expected , TestUtils . FormattedResult . ResultFactory . toStringUnsorted ( rs ) ) |
onderzoekHistorieWordtGefilterdOpDatumEindeEnDatumTijdVerval ( ) { final nl . bzk . brp . model . operationeel . kern . HisOnderzoekModel onderzoekModel = bouwHisOnderzoekModelMetRestricties ( new nl . bzk . brp . model . algemeen . attribuuttype . kern . DatumEvtDeelsOnbekendAttribuut ( 19900224 ) , nl . bzk . brp . m... | org . junit . Assert . assertThat ( onderzoeken . size ( ) , org . hamcrest . Matchers . is ( 0 ) ) |
test008GetMemberWithMatchingMemberName ( ) { final com . gemstone . gemfire . cache . Cache mockCache = mockContext . mock ( com . gemstone . gemfire . cache . Cache . class , "Cache" ) ; final com . gemstone . gemfire . distributed . DistributedSystem mockDistributedSystem = mockContext . mock ( com . gemstone . gemfi... | org . junit . Assert . assertSame ( mockMemberOne , commands . getMember ( mockCache , "One" ) ) |
basicFunctionTest1 ( ) { java . util . List < com . navercorp . pinpoint . profiler . receiver . service . WaitingJob > waitingJobList = this . waitingJobListFactory . createList ( com . navercorp . pinpoint . profiler . receiver . service . ActiveThreadDumpServiceTest . CREATE_SIZE , com . navercorp . pinpoint . profi... | org . junit . Assert . assertEquals ( com . navercorp . pinpoint . profiler . receiver . service . ActiveThreadDumpServiceTest . CREATE_SIZE , response . getThreadDumpsSize ( ) ) |
testBlockoutWillFire ( ) { org . pentaho . platform . web . http . api . resources . JobScheduleRequest mockJobScheduleRequest = mock ( org . pentaho . platform . web . http . api . resources . JobScheduleRequest . class ) ; org . pentaho . platform . api . scheduler2 . IJobTrigger mockJobTrigger = mock ( org . pentaho... | org . junit . Assert . assertEquals ( mockResponse , testResponse ) |
test2 ( ) { final org . eclipse . kapua . client . gateway . Topic topic = org . eclipse . kapua . client . gateway . Topic . of ( "foo" , "bar" ) ; "<AssertPlaceHolder>" ; } getSegments ( ) { return segments ; } | org . junit . Assert . assertEquals ( java . util . Arrays . asList ( "foo" , "bar" ) , topic . getSegments ( ) ) |
testGroupedSameBehaviorAsGroupBy ( ) { org . jooq . lambda . Random r = new org . jooq . lambda . Random ( java . lang . System . nanoTime ( ) ) ; int runs = ( r . nextInt ( 127 ) ) + 1 ; for ( int i = 0 ; i < runs ; i ++ ) { int mod = ( r . nextInt ( 125 ) ) + 2 ; org . jooq . lambda . List < java . lang . Long > long... | org . junit . Assert . assertEquals ( libMethod , newMethod ) |
testCreateSplits ( ) { org . apache . hadoop . fs . BlockLocation [ ] blockLocations = new org . apache . hadoop . fs . BlockLocation [ ] { new org . apache . hadoop . fs . BlockLocation ( new java . lang . String [ ] { "name" } , new java . lang . String [ ] { "host" } , 0 , 99 ) } ; com . bc . calvalus . processing .... | org . junit . Assert . assertEquals ( 2 , splits . size ( ) ) |
testOffer ( ) { java . nio . ByteBuffer data = java . nio . ByteBuffer . allocate ( len ) ; data . put ( testData ) ; data . rewind ( ) ; q . offer ( data ) ; byte [ ] dada = new byte [ len ] ; q . get ( dada ) ; "<AssertPlaceHolder>" ; } equals ( java . lang . Object , java . lang . Object ) { if ( left == null ) { re... | org . junit . Assert . assertTrue ( java . util . Arrays . equals ( dada , testData ) ) |
matchesDoNotSaveChangesWithNoMatchingMessage ( ) { matcher = new com . wounit . matchers . SaveChangesMatcher < com . webobjects . eocontrol . EOEditingContext > ( "an<sp>error" ) ; org . mockito . Mockito . doThrow ( new java . lang . RuntimeException ( "an<sp>unexpected<sp>error" ) ) . when ( mockEditingContext ) . s... | org . junit . Assert . assertThat ( result , org . hamcrest . CoreMatchers . is ( true ) ) |
test3DPointType ( ) { org . neo4j . graphdb . spatial . Point point = org . neo4j . values . storable . Values . pointValue ( CoordinateReferenceSystem . Cartesian_3D , 1 , 1 , 1 ) ; java . lang . String key = "location" ; node1 . setProperty ( key , point ) ; newTransaction ( ) ; java . lang . Object property = node1 ... | org . junit . Assert . assertEquals ( point , property ) |
testFetchByPrimaryKeyExisting ( ) { com . liferay . portal . kernel . model . WorkflowDefinitionLink newWorkflowDefinitionLink = addWorkflowDefinitionLink ( ) ; com . liferay . portal . kernel . model . WorkflowDefinitionLink existingWorkflowDefinitionLink = _persistence . fetchByPrimaryKey ( newWorkflowDefinitionLink ... | org . junit . Assert . assertEquals ( existingWorkflowDefinitionLink , newWorkflowDefinitionLink ) |
booleanValue ( ) { final org . jboss . msc . value . Value < java . lang . Class < ? extends java . lang . Boolean > > value = new org . jboss . msc . value . ClassOfValue < java . lang . Boolean > ( new org . jboss . msc . value . ImmediateValue < java . lang . Boolean > ( true ) ) ; "<AssertPlaceHolder>" ; } getValue... | org . junit . Assert . assertSame ( org . jboss . msc . value . Boolean . class , value . getValue ( ) ) |
testSerDeserPerf ( ) { com . esotericsoftware . kryo . Kryo kryo = new com . esotericsoftware . kryo . Kryo ( ) ; java . lang . String outputPath = temporaryFolder . newFile ( ) . toString ( ) ; com . esotericsoftware . kryo . io . Output output = new com . esotericsoftware . kryo . io . Output ( new java . io . FileOu... | org . junit . Assert . assertTrue ( ( ( someObject . getData ( ) . length ) == 1 ) ) |
testCreateTranslationMap ( ) { System . out . println ( "---<sp>testCreateTranslationMap<sp>---" ) ; java . util . List < org . societies . personalisation . CAUI . api . model . UserIntentModelData > uiModelList = new java . util . ArrayList < org . societies . personalisation . CAUI . api . model . UserIntentModelDat... | org . junit . Assert . assertEquals ( 4 , transMap . keySet ( ) . size ( ) ) |
testBasicAuthHeaders ( ) { com . nextdoor . bender . ipc . http . HttpTransportConfig config = new com . nextdoor . bender . ipc . http . HttpTransportConfig ( ) ; config . addHttpHeader ( "foo" , "bar" ) ; com . nextdoor . bender . auth . BasicHttpAuthConfig auth = new com . nextdoor . bender . auth . BasicHttpAuthCon... | org . junit . Assert . assertEquals ( expected , captor . getValue ( ) ) |
testUsageRecordResponse ( ) { java . lang . Long zoneId = null ; java . lang . Long accountId = null ; java . lang . Long domainId = null ; java . lang . String Description = "Test<sp>Object" ; java . lang . String usageDisplay = "<sp>" ; int usageType = - 1 ; java . lang . Double rawUsage = null ; java . lang . Long v... | org . junit . Assert . assertEquals ( "DomainName" , MockResponse . getDomainName ( ) ) |
modify_bytes ( ) { com . asakusafw . runtime . value . StringOption option = new com . asakusafw . runtime . value . StringOption ( ) ; byte [ ] bytes = "hello" . getBytes ( StringOptionUtil . ENCODING ) ; option . modify ( bytes , 0 , bytes . length ) ; "<AssertPlaceHolder>" ; } is ( java . lang . String ) { com . asa... | org . junit . Assert . assertThat ( option , is ( new com . asakusafw . runtime . value . StringOption ( "hello" ) ) ) |
testHasOthersFalse ( ) { com . sonyericsson . hudson . plugins . gerrit . trigger . hudsontrigger . data . TriggerContext context = new com . sonyericsson . hudson . plugins . gerrit . trigger . hudsontrigger . data . TriggerContext ( mockBuild ( "p" , 2 ) , null , new java . util . LinkedList < com . sonyericsson . hu... | org . junit . Assert . assertFalse ( context . hasOthers ( ) ) |
testGetSettingsPanel ( ) { System . out . println ( "getSettingsPanel" ) ; kg . apc . jmeter . vizualizers . TimesVsThreadsGui instance = new kg . apc . jmeter . vizualizers . TimesVsThreadsGui ( ) ; kg . apc . jmeter . vizualizers . JSettingsPanel result = instance . createSettingsPanel ( ) ; "<AssertPlaceHolder>" ; }... | org . junit . Assert . assertNotNull ( result ) |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.